diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-09-12 14:45:32 -0400 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-09-12 14:45:32 -0400 |
commit | f3b39ab5a882c2dcefe464c5fa99ef84b740dcae (patch) | |
tree | 0c7eb7543dacdf7552d4783816a3a07040b69f0f /roles/openshift_version/tasks | |
parent | f8393b7aef78c92437fe78092821a8d0a11c22cc (diff) | |
download | openshift-f3b39ab5a882c2dcefe464c5fa99ef84b740dcae.tar.gz openshift-f3b39ab5a882c2dcefe464c5fa99ef84b740dcae.tar.bz2 openshift-f3b39ab5a882c2dcefe464c5fa99ef84b740dcae.tar.xz openshift-f3b39ab5a882c2dcefe464c5fa99ef84b740dcae.zip |
Only install base openshift package on masters and nodes
Recent refactoring to remove openshift_common resulted
in base openshift rpm's being installed on more hosts
than previous. This situation results in hosts that
would otherwise not need access to openshift repositories
to require them.
This patch set results in only openshift_masters and
openshift_nodes to have the openshift base package installed.
Diffstat (limited to 'roles/openshift_version/tasks')
-rw-r--r-- | roles/openshift_version/tasks/main.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml index 204abe27e..1ff99adf8 100644 --- a/roles/openshift_version/tasks/main.yml +++ b/roles/openshift_version/tasks/main.yml @@ -5,11 +5,15 @@ is_containerized: "{{ openshift.common.is_containerized | default(False) | bool }}" is_atomic: "{{ openshift.common.is_atomic | default(False) | bool }}" +# This is only needed on masters and nodes; version_install_base_package +# should be set by a play externally. - name: Install the base package for versioning package: name: "{{ openshift.common.service_type }}{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }}" state: present - when: not is_containerized | bool + when: + - not is_containerized | bool + - version_install_base_package | bool # Block attempts to install origin without specifying some kind of version information. # This is because the latest tags for origin are usually alpha builds, which should not |