Skip to content

Commit

Permalink
Fail installation if Atomic Host variant ID is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed Oct 11, 2018
1 parent dec3f03 commit d373d1b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions playbooks/init/basic_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d373d1b

Please sign in to comment.