瀏覽代碼

Fail installation if Atomic Host variant ID is detected

Vadim Rutkovsky 6 年之前
父節點
當前提交
c64ab8fcdc
共有 1 個文件被更改,包括 4 次插入7 次删除
  1. 4 7
      playbooks/init/basic_facts.yml

+ 4 - 7
playbooks/init/basic_facts.yml

@@ -16,13 +16,10 @@
     import_role:
       name: openshift_sanitize_inventory
 
-  - name: Detecting Operating System from ostree_booted
-    stat:
-      path: /run/ostree-booted
-      get_checksum: false
-      get_attributes: false
-      get_mime: false
-    register: ostree_booted
+  - name: Detect OS Variant from /etc/os-release
+    fail:
+      msg: Atomic Host installations are no longer supported
+    when: lookup('ini', 'VARIANT_ID type=properties file=/etc/os-release') == 'atomic.host'
 
   # TODO(michaelgugino) remove this line once CI is updated.
   - name: set openshift_deployment_type if unset