summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
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 /roles/openshift_facts/library
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 'roles/openshift_facts/library')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py8
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 fed00132a..16630d5fd 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1052,7 +1052,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
@@ -1146,6 +1146,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):