summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-26 09:08:54 -0400
committerGitHub <noreply@github.com>2017-06-26 09:08:54 -0400
commitb64cfec4ebf9b95a8627de23bc8a15bd77fc1eb7 (patch)
tree3f6794b3856ce4ddd31709c96cb4da09861d3f90 /roles/openshift_facts
parent88690667342bca0e7df75bc90bb1846b63d6d78a (diff)
parentc299b9f199cedadf4a102ea9aaa4e33e9de6b301 (diff)
downloadopenshift-b64cfec4ebf9b95a8627de23bc8a15bd77fc1eb7.tar.gz
openshift-b64cfec4ebf9b95a8627de23bc8a15bd77fc1eb7.tar.bz2
openshift-b64cfec4ebf9b95a8627de23bc8a15bd77fc1eb7.tar.xz
openshift-b64cfec4ebf9b95a8627de23bc8a15bd77fc1eb7.zip
Merge pull request #4195 from ewolinetz/service_catalog
Creation of service_catalog and broker roles
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 0788ddfb0..663423061 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -537,6 +537,7 @@ def set_node_schedulability(facts):
return facts
+# pylint: disable=too-many-branches
def set_selectors(facts):
""" Set selectors facts if not already present in facts dict
Args:
@@ -570,6 +571,10 @@ def set_selectors(facts):
facts['hosted']['logging'] = {}
if 'selector' not in facts['hosted']['logging'] or facts['hosted']['logging']['selector'] in [None, 'None']:
facts['hosted']['logging']['selector'] = None
+ if 'etcd' not in facts['hosted']:
+ facts['hosted']['etcd'] = {}
+ if 'selector' not in facts['hosted']['etcd'] or facts['hosted']['etcd']['selector'] in [None, 'None']:
+ facts['hosted']['etcd']['selector'] = None
return facts
@@ -2157,6 +2162,25 @@ class OpenShiftFacts(object):
create_pvc=False
)
),
+ etcd=dict(
+ storage=dict(
+ kind=None,
+ volume=dict(
+ name='etcd',
+ size='1Gi'
+ ),
+ nfs=dict(
+ directory='/exports',
+ options='*(rw,root_squash)'
+ ),
+ host=None,
+ access=dict(
+ modes=['ReadWriteOnce']
+ ),
+ create_pv=True,
+ create_pvc=False
+ )
+ ),
registry=dict(
storage=dict(
kind=None,