diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-06 16:56:37 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-10 22:35:29 -0500 |
commit | 4c1b0dd4ab8f3a5d4fcfa4ba1501ed374793e77a (patch) | |
tree | 3ddcde311f1a47bb692e13fdefb1c5fe5f3d11cd /playbooks/common/openshift-cluster/upgrades/files/versions.sh | |
parent | 586972b427061433ba6a1cde94228c257d84164e (diff) | |
download | openshift-4c1b0dd4ab8f3a5d4fcfa4ba1501ed374793e77a.tar.gz openshift-4c1b0dd4ab8f3a5d4fcfa4ba1501ed374793e77a.tar.bz2 openshift-4c1b0dd4ab8f3a5d4fcfa4ba1501ed374793e77a.tar.xz openshift-4c1b0dd4ab8f3a5d4fcfa4ba1501ed374793e77a.zip |
Refactor upgrade playbook(s)
- Split playbooks into two, one for 3.0 minor upgrades and one for 3.0 to 3.1
upgrades
- Move upgrade playbooks to common/openshift/cluster/upgrades from adhoc
- Added a byo wrapper playbooks to set the groups based on the byo
conventions, other providers will need similar playbooks added eventually
- installer wrapper updates for refactored upgrade playbooks
- call new 3.0 to 3.1 upgrade playbook
- various fixes for edge cases I hit with a really old config laying
around.
- fix output of host facts to show connect_to value.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/files/versions.sh')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/files/versions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/files/versions.sh b/playbooks/common/openshift-cluster/upgrades/files/versions.sh new file mode 100644 index 000000000..f90719cab --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/files/versions.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +yum_installed=$(yum list installed "$@" 2>&1 | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ') + +yum_available=$(yum list available "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ') + + +echo "---" +echo "curr_version: ${yum_installed}" +echo "avail_version: ${yum_available}" |