summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-master/config.yml
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-05-26 14:30:37 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-05-26 14:30:37 -0300
commit14b23a8b14636407143375cbac71b090663cee77 (patch)
treed81974e9cd0d4e2a2cef4b2bfef697835a0179aa /playbooks/common/openshift-master/config.yml
parentc45ccc0ee879e93a4fd4304b4848595fa27014c5 (diff)
downloadopenshift-14b23a8b14636407143375cbac71b090663cee77.tar.gz
openshift-14b23a8b14636407143375cbac71b090663cee77.tar.bz2
openshift-14b23a8b14636407143375cbac71b090663cee77.tar.xz
openshift-14b23a8b14636407143375cbac71b090663cee77.zip
Get rpm installations functional again.
Diffstat (limited to 'playbooks/common/openshift-master/config.yml')
-rw-r--r--playbooks/common/openshift-master/config.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml
index 97a7db9a1..063d86f60 100644
--- a/playbooks/common/openshift-master/config.yml
+++ b/playbooks/common/openshift-master/config.yml
@@ -158,7 +158,6 @@
# Must be run before generating master certs which involved openshift_cli role and needs
# to pull down the correct docker container:
-# TODO: Handle rpm installs here
- name: Determine openshift_version to install on first master
hosts: oo_first_master
any_errors_fatal: true
@@ -170,14 +169,21 @@
set_fact:
openshift_version: "{{ openshift_release }}"
when: openshift.common.is_containerized | bool and openshift_release is defined
- - name: Determine version to configure if containerized and image tag specified
+# TODO: what should we do for rpm installs and openshift_release here?
+ - name: Determine container version to configure when openshift_image_tag specified
set_fact:
openshift_version: "{{ openshift_image_tag.split('v',1)[1] }}"
when: openshift.common.is_containerized | bool and openshift_image_tag is defined
- - name: Determine version to configure if already installed
+ - name: Determine rpm version to configure when openshift_pkg_version specified
+ set_fact:
+ # Expects a leading "-" in inventory, strip it off here, and ignore a trailing release,
+ # openshift_version should always just be "3.2" or "3.2.0.44"
+ openshift_version: "{{ openshift_pkg_version[1:].split('-')[0] }}"
+ when: not openshift.common.is_containerized | bool and openshift_pkg_version is defined
+ - name: Use openshift.common.version fact as version to configure if already installed
set_fact:
openshift_version: "{{ openshift.common.version }}"
- when: openshift.common.is_containerized | bool and openshift.common.version is defined
+ when: openshift.common.version is defined
- debug: var=openshift_version
- name: Determine if master certificates need to be generated