summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-10-29 08:08:31 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2015-10-29 08:08:31 -0400
commit16d1bce0be2f8c3942489630adcb7030aecadc55 (patch)
tree93e80f1577ad0f2f5f8931b493c50cd9aa657c77 /roles/openshift_facts/library
parent54319616cfc0ee15ded018a788cfcbb9426ddacc (diff)
parent8bfcf17c0355464123146685e31e06a27182b1a9 (diff)
downloadopenshift-16d1bce0be2f8c3942489630adcb7030aecadc55.tar.gz
openshift-16d1bce0be2f8c3942489630adcb7030aecadc55.tar.bz2
openshift-16d1bce0be2f8c3942489630adcb7030aecadc55.tar.xz
openshift-16d1bce0be2f8c3942489630adcb7030aecadc55.zip
Merge pull request #738 from detiber/storage_plugins
Install storage plugin dependencies
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 67994d11d..795f38341 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -500,7 +500,7 @@ def set_aggregate_facts(facts):
def set_deployment_facts_if_unset(facts):
""" Set Facts that vary based on deployment_type. This currently
includes common.service_type, common.config_base, master.registry_url,
- node.registry_url
+ node.registry_url, node.storage_plugin_deps
Args:
facts (dict): existing facts
@@ -550,6 +550,14 @@ def set_deployment_facts_if_unset(facts):
registry_url = 'aep3/aep-${component}:${version}'
facts[role]['registry_url'] = registry_url
+ if 'node' in facts:
+ deployment_type = facts['common']['deployment_type']
+ if 'storage_plugin_deps' not in facts['node']:
+ if deployment_type in ['openshift-enterprise', 'atomic-enterprise']:
+ facts['node']['storage_plugin_deps'] = ['ceph', 'glusterfs']
+ else:
+ facts['node']['storage_plugin_deps'] = []
+
return facts