Update openstack-puppet-modules dependencies
authorLukas Bezdicka <lbezdick@redhat.com>
Tue, 1 Nov 2016 12:15:22 +0000 (13:15 +0100)
committerLukas Bezdicka <lbezdick@redhat.com>
Tue, 1 Nov 2016 12:44:57 +0000 (13:44 +0100)
OPM package is metadata package with unversioned requirements which
means that update does not update the dependencies. This leaves us
with old puppet modules and old puppet during the puppet run.

Change-Id: I80f8a73142a09bb4178bb5a396d256ba81ba98a8
Closes-Bug: #1638266
Resolves: rhbz#1390559

extraconfig/tasks/yum_update.sh

index c2d7d58..4612f19 100755 (executable)
@@ -73,8 +73,9 @@ if [[ "$pacemaker_status" == "active" ]] ; then
         pcs cluster stop
     fi
 else
-    echo "Upgrading openstack-puppet-modules"
+    echo "Upgrading openstack-puppet-modules and its dependencies"
     yum -q -y update openstack-puppet-modules
+    yum deplist openstack-puppet-modules | awk '/dependency/{print $2}' | xargs yum -q -y update
     echo "Upgrading other packages is handled by config management tooling"
     echo -n "true" > $heat_outputs_path.update_managed_packages
     exit 0