diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-06 20:53:05 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-12 14:23:19 +0100 |
commit | 9041a816210132b1dad86217ecfef5f9fec4a8d2 (patch) | |
tree | 9cfc4a208e8d90ee198cd72f6e4ffeb443f8e794 /roles/openshift_preflight/nodes | |
parent | feeeb48f45ecbde3e5bcc2a66c7f947080d433e5 (diff) | |
download | openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.gz openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.bz2 openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.xz openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.zip |
Refactor preflight check into roles
Diffstat (limited to 'roles/openshift_preflight/nodes')
l--------- | roles/openshift_preflight/nodes/library | 1 | ||||
-rw-r--r-- | roles/openshift_preflight/nodes/tasks/main.yml | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/roles/openshift_preflight/nodes/library b/roles/openshift_preflight/nodes/library new file mode 120000 index 000000000..ba40d2f56 --- /dev/null +++ b/roles/openshift_preflight/nodes/library @@ -0,0 +1 @@ +../../../library
\ No newline at end of file diff --git a/roles/openshift_preflight/nodes/tasks/main.yml b/roles/openshift_preflight/nodes/tasks/main.yml new file mode 100644 index 000000000..16c7212d4 --- /dev/null +++ b/roles/openshift_preflight/nodes/tasks/main.yml @@ -0,0 +1,57 @@ +--- +# determine if yum install of node pkgs will work +- when: + - not containerized + block: + + - name: main packages for enterprise + when: + - deployment_type == "openshift-enterprise" + check_yum_update: + packages: + - atomic-openshift + - atomic-openshift-node + - atomic-openshift-sdn-ovs + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'main packages for enterprise'})] }}" + + - name: main packages for origin + when: + - deployment_type == "origin" + check_yum_update: + packages: + - origin + - origin-node + - origin-sdn-ovs + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'main packages for origin'})] }}" + + - name: other node packages + 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'})] }}" |