summaryrefslogtreecommitdiffstats
path: root/roles/openshift_preflight/nodes/tasks
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-17 12:32:16 +0100
committerGitHub <noreply@github.com>2017-01-17 12:32:16 +0100
commitabe838c4fcd20fb51d1de3dac495036a9e4159b0 (patch)
tree6e99e4847565fc57bc75fb775ab620536c948171 /roles/openshift_preflight/nodes/tasks
parentb01d19b5a37330c4b3fea5f1f54efd6ef0e207c0 (diff)
parent01046c33e0bdcaf44dbd9bfcdf84f1a9a335437c (diff)
downloadopenshift-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/tasks')
-rw-r--r--roles/openshift_preflight/nodes/tasks/main.yml41
1 files changed, 41 insertions, 0 deletions
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'})] }}"