From 67b98ec17954f55a62b144dffc1885a63e44cc09 Mon Sep 17 00:00:00 2001 From: Lukas Bezdicka Date: Fri, 5 Sep 2014 10:50:44 +0200 Subject: [PATCH] Call rpm --whatprovides on packages required to run puppet We install the packages with one yum command but it won't return error if some of the packages are missing. We better check that using rpm. Change-Id: Ie2537c5c0e3348d2c7df6b9bfc40939985171b45 --- packstack/plugins/puppet_950.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packstack/plugins/puppet_950.py b/packstack/plugins/puppet_950.py index d1d1bae3a..1a3d34c49 100644 --- a/packstack/plugins/puppet_950.py +++ b/packstack/plugins/puppet_950.py @@ -154,6 +154,9 @@ def install_deps(config, messages): % packages) server.append("yum update -y %s" % packages) + # yum does not fail if one of the packages is missing + for package in deps: + server.append("rpm -q --whatprovides %s" % (package)) server.execute()