diff options
author | Andrew Butcher <abutcher@redhat.com> | 2015-11-18 14:34:47 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2015-12-15 15:55:20 -0500 |
commit | 0c18c742c60e5c4acd609d682caae7f7ce8840cd (patch) | |
tree | 2ec429223eee1ce0e35b99a1a5ac328a9f07e453 /playbooks/common/openshift-master | |
parent | ebc61582e7577ae09b856ff95a8aaef740057234 (diff) | |
download | openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.gz openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.bz2 openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.xz openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.zip |
Create nfs host group with registry volume attachment.
Diffstat (limited to 'playbooks/common/openshift-master')
-rw-r--r-- | playbooks/common/openshift-master/config.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml index dd638487a..eff4337cb 100644 --- a/playbooks/common/openshift-master/config.yml +++ b/playbooks/common/openshift-master/config.yml @@ -394,7 +394,15 @@ - name: Create services hosts: oo_first_master + vars: + attach_registry_volume: "{{ groups.oo_nfs_to_config | length > 0 }}" + pre_tasks: + - set_fact: + nfs_host: "{{ groups.oo_nfs_to_config.0 }}" + registry_volume_path: "{{ hostvars[groups.oo_nfs_to_config.0].openshift.nfs.exports_dir + '/' + hostvars[groups.oo_nfs_to_config.0].openshift.nfs.registry_volume }}" + when: attach_registry_volume | bool roles: - role: openshift_router when: openshift.master.infra_nodes is defined - #- role: openshift_registry + - role: openshift_registry + when: openshift.master.infra_nodes is defined and attach_registry_volume | bool |