summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/defaults
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2015-06-19 10:00:41 -0400
committerScott Dodson <sdodson@redhat.com>2015-06-22 15:37:50 -0400
commit15bcfb3e59e6e31c00e23725547f896c03c93290 (patch)
treefbb1a0138703a7183e49cf07c6bd1ea0e863e241 /roles/openshift_examples/defaults
parenta7ac3f7b513fe57ddccad15bdb6c7e9091f16bcd (diff)
downloadopenshift-15bcfb3e59e6e31c00e23725547f896c03c93290.tar.gz
openshift-15bcfb3e59e6e31c00e23725547f896c03c93290.tar.bz2
openshift-15bcfb3e59e6e31c00e23725547f896c03c93290.tar.xz
openshift-15bcfb3e59e6e31c00e23725547f896c03c93290.zip
Add openshift_examples role
This role installs db-templates, image-streams, and quickstart-templates into /usr/share/openshift/examples on the master and then uses `oc create` to import them.
Diffstat (limited to 'roles/openshift_examples/defaults')
-rw-r--r--roles/openshift_examples/defaults/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_examples/defaults/main.yml b/roles/openshift_examples/defaults/main.yml
new file mode 100644
index 000000000..0f8e9f7ee
--- /dev/null
+++ b/roles/openshift_examples/defaults/main.yml
@@ -0,0 +1,16 @@
+---
+# By default install rhel and xpaas streams on enterprise installs
+openshift_examples_load_centos: "{{ openshift_deployment_type != 'enterprise' }}"
+openshift_examples_load_rhel: "{{ openshift_deployment_type == 'enterprise' }}"
+openshift_examples_load_db_templates: true
+openshift_examples_load_xpaas: false
+openshift_examples_load_quickstarts: true
+
+examples_base: /usr/share/openshift/examples
+image_streams_base: "{{ examples_base }}/image-streams"
+centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json"
+rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json"
+db_templates_base: "{{ examples_base }}/db-templates"
+xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json"
+xpaas_templates_base: "{{ examples_base }}/xpaas-templates"
+quickstarts_base: "{{ examples_base }}/quickstart-templates"