summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master
diff options
context:
space:
mode:
authorWesley Hearn <wesley.s.hearn@gmail.com>2016-01-04 09:42:43 -0500
committerWesley Hearn <wesley.s.hearn@gmail.com>2016-01-04 09:42:43 -0500
commitf1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9 (patch)
tree1c304d5daebfb1780ca26973319b4427e2a40b54 /playbooks/common/openshift-master
parentfb1b9ff7d3293c821a8569ae95dcc8a98dfbf967 (diff)
parent0c18c742c60e5c4acd609d682caae7f7ce8840cd (diff)
downloadopenshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.gz
openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.bz2
openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.xz
openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.zip
Merge pull request #951 from abutcher/nfs
NFS for registry storage
Diffstat (limited to 'playbooks/common/openshift-master')
-rw-r--r--playbooks/common/openshift-master/config.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml
index fae37d70c..759656e63 100644
--- a/playbooks/common/openshift-master/config.yml
+++ b/playbooks/common/openshift-master/config.yml
@@ -397,7 +397,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