summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cfme/vars
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2017-09-15 17:18:22 -0400
committerTim Bielawa <tbielawa@redhat.com>2017-10-04 10:48:30 -0400
commit8e10c53974b4b87e483ed0dfec3946383aa071c7 (patch)
tree9d1cf76f6e563f9b47fd4f6c6b8bfaa0316ca884 /roles/openshift_cfme/vars
parent42d330a1cf2990fee39dab36250524ebfb303428 (diff)
downloadopenshift-8e10c53974b4b87e483ed0dfec3946383aa071c7.tar.gz
openshift-8e10c53974b4b87e483ed0dfec3946383aa071c7.tar.bz2
openshift-8e10c53974b4b87e483ed0dfec3946383aa071c7.tar.xz
openshift-8e10c53974b4b87e483ed0dfec3946383aa071c7.zip
Import upstream templates. Do the work. Validate parameters.
Diffstat (limited to 'roles/openshift_cfme/vars')
-rw-r--r--roles/openshift_cfme/vars/main.yml69
1 files changed, 69 insertions, 0 deletions
diff --git a/roles/openshift_cfme/vars/main.yml b/roles/openshift_cfme/vars/main.yml
new file mode 100644
index 000000000..f79724afa
--- /dev/null
+++ b/roles/openshift_cfme/vars/main.yml
@@ -0,0 +1,69 @@
+---
+# Misc enumerated values
+#---------------------------------------------------------------------
+# Allowed choices for the storage class parameter
+__openshift_cfme_storage_classes:
+ - nfs
+ - nfs_external
+ - preconfigured
+ - cloudprovider
+
+# Name of the application templates with object/parameter definitions
+__openshift_cfme_app_templates:
+ - miq-template-ext-db
+ - miq-template
+ - cfme-template-ext-db
+ - cfme-template
+
+# PostgreSQL database connection parameters
+__openshift_cfme_db_parameters:
+ - DATABASE_USER
+ - DATABASE_PASSWORD
+ - DATABASE_IP
+ - DATABASE_PORT
+ - DATABASE_NAME
+
+# # Commented out until we can support both CFME and MIQ
+# # openshift_cfme_flavor: "{{ 'cloudforms' if openshift_deployment_type == 'openshift-enterprise' else 'manageiq' }}"
+#openshift_cfme_flavor: cloudforms
+openshift_cfme_flavor: manageiq
+# TODO: Make this conditional as well based on the prior variable
+# # openshift_cfme_flavor_short: "{{ 'cfme' if openshift_deployment_type == 'openshift-enterprise' else 'miq' }}"
+# openshift_cfme_flavor_short: cfme
+openshift_cfme_flavor_short: miq
+
+######################################################################
+# ACCOUNTING
+######################################################################
+# Service Account SSCs
+__openshift_system_account_sccs:
+ - name: -anyuid
+ resource_name: anyuid
+ - name: -orchestrator
+ resource_name: anyuid
+ - name: -privileged
+ resource_name: privileged
+ - name: -httpd
+ resource_name: anyuid
+
+# Service Account Roles
+__openshift_cfme_system_account_roles:
+ - name: -orchestrator
+ resource_name: view
+ - name: -orchestrator
+ resource_name: edit
+
+######################################################################
+# DEFAULTS
+######################################################################
+# User only has to provide parameters they need to override, we will
+# do a hash update method with the provided user parameters to create
+# the final connection structure.
+#
+# TODO: Update user provided configs with this if they are missing fields
+__openshift_cfme_required_db_conn_params:
+ - DATABASE_USER
+ - DATABASE_PASSWORD
+ - DATABASE_IP
+ - DATABASE_PORT
+ - DATABASE_NAME