diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-11-22 13:08:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 13:08:21 -0500 |
commit | 5889d10321ced514a1a235016bc4173895065474 (patch) | |
tree | e6af79a06a65a26a144e3a5cdb750494999a4172 /playbooks/openshift-glusterfs/private/config.yml | |
parent | 6cde29151f922127c7ea45a8949a015998739945 (diff) | |
parent | b972abfa8c47e821c55e519a8a1d08b771946e49 (diff) | |
download | openshift-5889d10321ced514a1a235016bc4173895065474.tar.gz openshift-5889d10321ced514a1a235016bc4173895065474.tar.bz2 openshift-5889d10321ced514a1a235016bc4173895065474.tar.xz openshift-5889d10321ced514a1a235016bc4173895065474.zip |
Merge pull request #6157 from mtnbikenc/consolidate-openshift-glusterfs
Playbook Consolidation - openshift-glusterfs
Diffstat (limited to 'playbooks/openshift-glusterfs/private/config.yml')
-rw-r--r-- | playbooks/openshift-glusterfs/private/config.yml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/playbooks/openshift-glusterfs/private/config.yml b/playbooks/openshift-glusterfs/private/config.yml new file mode 100644 index 000000000..19e14ab3e --- /dev/null +++ b/playbooks/openshift-glusterfs/private/config.yml @@ -0,0 +1,60 @@ +--- +- name: GlusterFS Install Checkpoint Start + hosts: all + gather_facts: false + tasks: + - name: Set GlusterFS install 'In Progress' + run_once: true + set_stats: + data: + installer_phase_glusterfs: + status: "In Progress" + start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" + +- name: Open firewall ports for GlusterFS nodes + hosts: glusterfs + tasks: + - include_role: + name: openshift_storage_glusterfs + tasks_from: firewall.yml + when: + - openshift_storage_glusterfs_is_native | default(True) | bool + - include_role: + name: openshift_storage_glusterfs + tasks_from: kernel_modules.yml + when: + - openshift_storage_glusterfs_is_native | default(True) | bool + +- name: Open firewall ports for GlusterFS registry nodes + hosts: glusterfs_registry + tasks: + - include_role: + name: openshift_storage_glusterfs + tasks_from: firewall.yml + when: + - openshift_storage_glusterfs_registry_is_native | default(True) | bool + - include_role: + name: openshift_storage_glusterfs + tasks_from: kernel_modules.yml + when: + - openshift_storage_glusterfs_registry_is_native | default(True) | bool + +- name: Configure GlusterFS + hosts: oo_first_master + tasks: + - name: setup glusterfs + include_role: + name: openshift_storage_glusterfs + when: groups.oo_glusterfs_to_config | default([]) | count > 0 + +- name: GlusterFS Install Checkpoint End + hosts: all + gather_facts: false + tasks: + - name: Set GlusterFS install 'Complete' + run_once: true + set_stats: + data: + installer_phase_glusterfs: + status: "Complete" + end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" |