From 2cb925e39c494b6560fb05c207113c214bcc8e00 Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Sun, 6 Jul 2014 20:20:39 +0200 Subject: [PATCH] yum grouplist response on F20 is lower case On el6 the `yum grouplist` response contains 'Installed Groups:' but on F20 it is 'Installed groups'. This change modifies to regexp in the slave.pp to accept both. Change-Id: I50d80d7a11bee4437ed3967dc1a55ef56d15ba8c --- modules/jenkins/manifests/slave.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/jenkins/manifests/slave.pp b/modules/jenkins/manifests/slave.pp index e19742798e..f55625d602 100644 --- a/modules/jenkins/manifests/slave.pp +++ b/modules/jenkins/manifests/slave.pp @@ -39,7 +39,7 @@ class jenkins::slave( 'RedHat': { exec { 'yum Group Install': - unless => '/usr/bin/yum grouplist "Development tools" | /bin/grep "^Installed Groups"', + unless => '/usr/bin/yum grouplist "Development tools" | /bin/grep "^Installed [Gg]roups"', command => '/usr/bin/yum -y groupinstall "Development tools"', }