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 /roles/openshift_facts | |
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 'roles/openshift_facts')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index e557853b1..e52c2cbed 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -985,7 +985,7 @@ class OpenShiftFacts(object): Raises: OpenShiftFactsUnsupportedRoleError: """ - known_roles = ['common', 'master', 'node', 'master_sdn', 'node_sdn', 'etcd'] + known_roles = ['common', 'master', 'node', 'master_sdn', 'node_sdn', 'etcd', 'nfs'] def __init__(self, role, filename, local_facts, additive_facts_to_overwrite=False): self.changed = False @@ -1078,6 +1078,12 @@ class OpenShiftFacts(object): node = dict(labels={}, annotations={}, portal_net='172.30.0.0/16', iptables_sync_period='5s', set_node_ip=False) defaults['node'] = node + + if 'nfs' in roles: + nfs = dict(exports_dir='/var/export', registry_volume='regvol', + export_options='*(rw,sync,all_squash)') + defaults['nfs'] = nfs + return defaults def guess_host_provider(self): |