diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-07 13:35:46 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-03-07 15:10:33 -0500 |
commit | 4b394fc566333d4d9f4bc789b03b9a68c22bb028 (patch) | |
tree | 860179d0fa85a68e624c8d131b50b5b8cd31fae3 /roles/openshift_cli | |
parent | b0ebc4302507ca9464837281ea9cf4aeb5ef4e90 (diff) | |
download | openshift-4b394fc566333d4d9f4bc789b03b9a68c22bb028.tar.gz openshift-4b394fc566333d4d9f4bc789b03b9a68c22bb028.tar.bz2 openshift-4b394fc566333d4d9f4bc789b03b9a68c22bb028.tar.xz openshift-4b394fc566333d4d9f4bc789b03b9a68c22bb028.zip |
Support openshift_image_tag
This is the containerized openshift_pkg_version equivalent. Originally I was
hoping to reuse openshift_pkg_version for containerized installs but the fact
that it's very coupled to yum made that pretty ugly.
However, I did opt to rely on the previously existing 'openshift_version'
variable. Containerized and RPM installs can both use that variable and it
will be set appropriately if either openshift_pkg_version or
openshift_image_tag are set. I suspect someday containerized installs will be
the only option and I didn't can to have thinkgs like openshift_pkg_version and
openshift_image_tag in the playbooks anymore the necessary.
Diffstat (limited to 'roles/openshift_cli')
-rw-r--r-- | roles/openshift_cli/templates/openshift.j2 | 2 | ||||
-rw-r--r-- | roles/openshift_cli/vars/main.yml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_cli/templates/openshift.j2 b/roles/openshift_cli/templates/openshift.j2 index f969a4bab..437e08aab 100644 --- a/roles/openshift_cli/templates/openshift.j2 +++ b/roles/openshift_cli/templates/openshift.j2 @@ -5,7 +5,7 @@ fi cmd=`basename $0` user=`id -u` group=`id -g` -image_tag={{ image_tag | default(openshift.common.image_tag) }} +image_tag={{ openshift_version }} >&2 echo """ ================================================================================ diff --git a/roles/openshift_cli/vars/main.yml b/roles/openshift_cli/vars/main.yml new file mode 100644 index 000000000..4d0c87497 --- /dev/null +++ b/roles/openshift_cli/vars/main.yml @@ -0,0 +1,2 @@ +--- +openshift_version: "{{ openshift_image_tag | default(openshift.common.image_tag) | default('') }}" |