diff options
author | ewolinetz <ewolinet@redhat.com> | 2017-06-23 14:31:10 -0500 |
---|---|---|
committer | ewolinetz <ewolinet@redhat.com> | 2017-06-23 15:12:21 -0500 |
commit | 3d19aa3e7d49cfcc19b8e3d4f997cc1ef5b83767 (patch) | |
tree | 01e45b83f1b266563450a4759f43a2a20689da02 /roles/openshift_facts | |
parent | 0ba0acba909ff02fb4f2735f7fb3916800ca9455 (diff) | |
download | openshift-3d19aa3e7d49cfcc19b8e3d4f997cc1ef5b83767.tar.gz openshift-3d19aa3e7d49cfcc19b8e3d4f997cc1ef5b83767.tar.bz2 openshift-3d19aa3e7d49cfcc19b8e3d4f997cc1ef5b83767.tar.xz openshift-3d19aa3e7d49cfcc19b8e3d4f997cc1ef5b83767.zip |
Adding volume fact for etcd for openshift ansible service broker
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 0788ddfb0..8acb166d6 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -536,7 +536,7 @@ def set_node_schedulability(facts): facts['node']['schedulable'] = True return facts - +# pylint: disable=too-many-branches def set_selectors(facts): """ Set selectors facts if not already present in facts dict Args: @@ -570,6 +570,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 +2161,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, |