summaryrefslogtreecommitdiffstats
path: root/roles/openshift_management/vars
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2018-01-29 15:30:30 -0500
committerRussell Teague <rteague@redhat.com>2018-01-29 15:52:25 -0500
commit53ed4ededbbac3ca0095051885aecd0674fbf867 (patch)
treee4273a4f59b2d394a5f14434de00e987bf14295e /roles/openshift_management/vars
parent2ec70a36f50f670887f2f257d348db6332de5d26 (diff)
downloadopenshift-53ed4ededbbac3ca0095051885aecd0674fbf867.tar.gz
openshift-53ed4ededbbac3ca0095051885aecd0674fbf867.tar.bz2
openshift-53ed4ededbbac3ca0095051885aecd0674fbf867.tar.xz
openshift-53ed4ededbbac3ca0095051885aecd0674fbf867.zip
[1538960] Correct ability to overried openshift_management_app_template
* Converted 'flavor' logic to be based on app template * Converted 'ext-db' logic to use var based on app template * Prepended role private vars with '__' for consistency Bug 1538960 https://bugzilla.redhat.com/show_bug.cgi?id=1538960
Diffstat (limited to 'roles/openshift_management/vars')
-rw-r--r--roles/openshift_management/vars/main.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/roles/openshift_management/vars/main.yml b/roles/openshift_management/vars/main.yml
index da3ad0af7..d7b18df3a 100644
--- a/roles/openshift_management/vars/main.yml
+++ b/roles/openshift_management/vars/main.yml
@@ -30,14 +30,18 @@ __openshift_management_db_parameters:
- DATABASE_PORT
- DATABASE_NAME
-# # Commented out until we can support both CFME and MIQ
-# # openshift_management_flavor: "{{ 'cloudforms' if openshift_deployment_type == 'openshift-enterprise' else 'manageiq' }}"
-#openshift_management_flavor: cloudforms
-openshift_management_flavor: manageiq
-# TODO: Make this conditional as well based on the prior variable
-# # openshift_management_flavor_short: "{{ 'cfme' if openshift_deployment_type == 'openshift-enterprise' else 'miq' }}"
-# openshift_management_flavor_short: cfme
-openshift_management_flavor_short: miq
+__openshift_management_flavors:
+ miq:
+ short: miq
+ long: manageiq
+ cfme:
+ short: cfme
+ long: cloudforms
+
+__openshift_management_flavor: "{{ __openshift_management_flavors[openshift_management_app_template.split('-')[0]]['long'] }}"
+__openshift_management_flavor_short: "{{ __openshift_management_flavors[openshift_management_app_template.split('-')[0]]['short'] }}"
+
+__openshift_management_use_ext_db: "{{ true if 'ext-db' in openshift_management_app_template else false }}"
######################################################################
# ACCOUNTING