Skip to content

Commit

Permalink
Case insensitive search for installed YUM groups. Fixes voxpupuli#7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlastimil Holer committed Apr 29, 2015
1 parent 6707320 commit 39c9b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
present,installed: {
exec { "yum-groupinstall-${name}":
command => "yum -y groupinstall '${name}'",
unless => "yum grouplist '${name}' | egrep '^Installed.+Groups:$'",
unless => "yum grouplist '${name}' | egrep -i '^Installed.+Groups:$'",
}
}

absent,purged: {
exec { "yum-groupremove-${name}":
command => "yum -y groupremove '${name}'",
onlyif => "yum grouplist '${name}' | egrep '^Installed.+Groups:$'",
onlyif => "yum grouplist '${name}' | egrep -i '^Installed.+Groups:$'",
}
}

Expand Down

0 comments on commit 39c9b91

Please sign in to comment.