diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-09-08 17:32:15 -0400 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-09-08 17:44:09 -0400 |
commit | a4e7664bde89e4da3985f5bd8e7cd5963e9a949d (patch) | |
tree | 366c7877d163f23ac487a6db07e3fb125453d13f /playbooks/common/openshift-cluster | |
parent | 99e68454aa30bf3c80a584447617342a2c4470e2 (diff) | |
download | openshift-a4e7664bde89e4da3985f5bd8e7cd5963e9a949d.tar.gz openshift-a4e7664bde89e4da3985f5bd8e7cd5963e9a949d.tar.bz2 openshift-a4e7664bde89e4da3985f5bd8e7cd5963e9a949d.tar.xz openshift-a4e7664bde89e4da3985f5bd8e7cd5963e9a949d.zip |
Fix rpm version logic for hosts
Currently, the variable openshift_pkg_version is defined
by the first master unless specified by the user. The role
openshift_version attempts to set this value on all other
hosts after setting it on the first master.
During normal installation, openshift_pkg_version is not
initially defined, therefor each host will utilize the
most recent rpm available. This creates a problem
during later operations of a cluster if a node is added
or replaced by a new node.
This commit ensures that the value for openshift_pkg_version
set by the first master is respected by subsequent hosts.
Fixes: #5341
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/initialize_openshift_version.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/initialize_openshift_version.yml b/playbooks/common/openshift-cluster/initialize_openshift_version.yml index 7112a6084..7af6b25bc 100644 --- a/playbooks/common/openshift-cluster/initialize_openshift_version.yml +++ b/playbooks/common/openshift-cluster/initialize_openshift_version.yml @@ -12,5 +12,10 @@ hosts: oo_all_hosts:!oo_first_master vars: openshift_version: "{{ hostvars[groups.oo_first_master.0].openshift_version }}" + pre_tasks: + - set_fact: + openshift_pkg_version: -{{ openshift_version }} + when: openshift_pkg_version is not defined + - debug: msg="openshift_pkg_version set to {{ openshift_pkg_version }}" roles: - openshift_version |