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/masters | |
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/masters')
l--------- | roles/openshift_preflight/masters/library | 1 | ||||
-rw-r--r-- | roles/openshift_preflight/masters/tasks/main.yml | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/roles/openshift_preflight/masters/library b/roles/openshift_preflight/masters/library new file mode 120000 index 000000000..ba40d2f56 --- /dev/null +++ b/roles/openshift_preflight/masters/library @@ -0,0 +1 @@ +../../../library
\ No newline at end of file diff --git a/roles/openshift_preflight/masters/tasks/main.yml b/roles/openshift_preflight/masters/tasks/main.yml new file mode 100644 index 000000000..ed42f69fa --- /dev/null +++ b/roles/openshift_preflight/masters/tasks/main.yml @@ -0,0 +1,47 @@ +--- +# determine if yum install of master 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-clients + - atomic-openshift-master + 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-clients + - origin-master + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'main packages for origin'})] }}" + + - name: other master packages + check_yum_update: + packages: + - etcd + - bash-completion + - cockpit-bridge + - cockpit-docker + - cockpit-kubernetes + - cockpit-shell + - cockpit-ws + - httpd-tools + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'other master packages'})] }}" |