summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-03-02 14:12:30 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2016-03-03 14:28:03 -0500
commitd98377cdce21fe1f258d8bd1b4ac1e0cf1d19555 (patch)
tree08c707c3c9956420766eefddc50b7c03afd250ac /roles
parent66be4ff3ae224632b0fc98b3ef5d616dd3e45c12 (diff)
downloadopenshift-d98377cdce21fe1f258d8bd1b4ac1e0cf1d19555.tar.gz
openshift-d98377cdce21fe1f258d8bd1b4ac1e0cf1d19555.tar.bz2
openshift-d98377cdce21fe1f258d8bd1b4ac1e0cf1d19555.tar.xz
openshift-d98377cdce21fe1f258d8bd1b4ac1e0cf1d19555.zip
Adding support for v1.2 examples
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_examples/defaults/main.yml2
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py9
2 files changed, 10 insertions, 1 deletions
diff --git a/roles/openshift_examples/defaults/main.yml b/roles/openshift_examples/defaults/main.yml
index 5e955590e..ad21d0f09 100644
--- a/roles/openshift_examples/defaults/main.yml
+++ b/roles/openshift_examples/defaults/main.yml
@@ -6,7 +6,7 @@ openshift_examples_load_db_templates: true
openshift_examples_load_xpaas: "{{ openshift_deployment_type != 'origin' }}"
openshift_examples_load_quickstarts: true
-content_version: "{{ 'v1.1' if openshift.common.version_gte_3_1_or_1_1 else 'v1.0' }}"
+content_version: "{{ openshift.common.examples_content_version }}"
examples_base: "{{ openshift.common.config_base if openshift.common.is_containerized else '/usr/share/openshift' }}/examples"
image_streams_base: "{{ examples_base }}/image-streams"
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 349b50976..71e3284af 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -731,6 +731,15 @@ def set_version_facts_if_unset(facts):
facts['common']['version_gte_3_1_1_or_1_1_1'] = version_gte_3_1_1_or_1_1_1
facts['common']['version_gte_3_2_or_1_2'] = version_gte_3_2_or_1_2
+ if version_gte_3_2_or_1_2:
+ examples_content_version = 'v1.2'
+ elif version_gte_3_1_or_1_1:
+ examples_content_version = 'v1.1'
+ else:
+ examples_content_version = 'v1.0'
+
+ facts['common']['examples_content_version'] = examples_content_version
+
return facts
def set_manageiq_facts_if_unset(facts):