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
This commit is contained in:
Attila Fazekas 2014-07-06 20:20:39 +02:00
parent 9a15781d5e
commit 2cb925e39c
1 changed files with 1 additions and 1 deletions

View File

@ -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"',
}