summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-08-08 08:39:31 -0400
committerScott Dodson <sdodson@redhat.com>2016-08-24 16:02:48 -0400
commitc0067ca0646c99dc428f09f3e68eacfab683394f (patch)
tree8606cad0997846dff4edb8c8a854cae987e2b410 /roles/openshift_facts
parentb1ce2cc8803cc5ac87a6bfcb22554ba8662c3009 (diff)
downloadopenshift-c0067ca0646c99dc428f09f3e68eacfab683394f.tar.gz
openshift-c0067ca0646c99dc428f09f3e68eacfab683394f.tar.bz2
openshift-c0067ca0646c99dc428f09f3e68eacfab683394f.tar.xz
openshift-c0067ca0646c99dc428f09f3e68eacfab683394f.zip
add selectors for metrics and logging
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index f01f3510d..b67ef491f 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -477,6 +477,14 @@ def set_selectors(facts):
facts['hosted']['registry'] = {}
if 'selector' not in facts['hosted']['registry'] or facts['hosted']['registry']['selector'] in [None, 'None']:
facts['hosted']['registry']['selector'] = selector
+ if 'metrics' not in facts['hosted']:
+ facts['hosted']['metrics'] = {}
+ if 'selector' not in facts['hosted']['metrics'] or facts['hosted']['metrics']['selector'] in [None, 'None']:
+ facts['hosted']['metrics']['selector'] = None
+ if 'logging' not in facts['hosted']:
+ facts['hosted']['logging'] = {}
+ if 'selector' not in facts['hosted']['logging'] or facts['hosted']['logging']['selector'] in [None, 'None']:
+ facts['hosted']['logging']['selector'] = None
return facts