diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-17 12:32:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 12:32:16 +0100 |
commit | abe838c4fcd20fb51d1de3dac495036a9e4159b0 (patch) | |
tree | 6e99e4847565fc57bc75fb775ab620536c948171 /roles/openshift_preflight/nodes | |
parent | b01d19b5a37330c4b3fea5f1f54efd6ef0e207c0 (diff) | |
parent | 01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c (diff) | |
download | openshift-abe838c4fcd20fb51d1de3dac495036a9e4159b0.tar.gz openshift-abe838c4fcd20fb51d1de3dac495036a9e4159b0.tar.bz2 openshift-abe838c4fcd20fb51d1de3dac495036a9e4159b0.tar.xz openshift-abe838c4fcd20fb51d1de3dac495036a9e4159b0.zip |
Merge pull request #2993 from rhcarvalho/success-preflight
Add RPM checks as a byo playbook
Diffstat (limited to 'roles/openshift_preflight/nodes')
-rw-r--r-- | roles/openshift_preflight/nodes/meta/main.yml | 3 | ||||
-rw-r--r-- | roles/openshift_preflight/nodes/tasks/main.yml | 41 |
2 files changed, 44 insertions, 0 deletions
diff --git a/roles/openshift_preflight/nodes/meta/main.yml b/roles/openshift_preflight/nodes/meta/main.yml new file mode 100644 index 000000000..6f23cbf3b --- /dev/null +++ b/roles/openshift_preflight/nodes/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - role: openshift_preflight/base diff --git a/roles/openshift_preflight/nodes/tasks/main.yml b/roles/openshift_preflight/nodes/tasks/main.yml new file mode 100644 index 000000000..a10e69024 --- /dev/null +++ b/roles/openshift_preflight/nodes/tasks/main.yml @@ -0,0 +1,41 @@ +--- +# determine if yum install of node pkgs will work +- when: not openshift.common.is_containerized | bool + block: + + - name: main node packages availability + check_yum_update: + packages: + - "{{ openshift.common.service_type }}" + - "{{ openshift.common.service_type }}-node" + - "{{ openshift.common.service_type }}-sdn-ovs" + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'main node packages availability'})] }}" + + - name: other node packages availability + check_yum_update: + packages: + - docker + - PyYAML + - firewalld + - iptables + - iptables-services + - nfs-utils + - ntp + - yum-utils + - dnsmasq + - libselinux-python + - ceph-common + - glusterfs-fuse + - iscsi-initiator-utils + - pyparted + - python-httplib2 + - openssl + - flannel + - bind + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'other node packages availability'})] }}" |