Skip to content

Commit

Permalink
Handle changes in package group definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
m3n3pm committed Dec 27, 2024
1 parent 62b73b4 commit aa95bc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
case $ensure {
'present', 'installed', default: {
exec { "yum-groupinstall-${name}":
command => join(concat(["yum -y groupinstall '${name}'"], $install_options), ' '),
unless => "yum grouplist hidden '${name}' | egrep -i '^Installed.+Groups:$'",
command => join(concat(["yum -y group install '${name}'"], $install_options), ' '),
unless => "yum group list hidden '${name}' | egrep -i '^Installed.+Groups:$'",
timeout => $timeout,
}
if $ensure == 'latest' {
exec { "yum-groupinstall-${name}-latest":
command => join(concat(["yum -y groupinstall '${name}'"], $install_options), ' '),
onlyif => "yum groupinfo '${name}' | egrep '\\s+\\+'",
command => join(concat(["yum -y group install '${name}'"], $install_options), ' '),
unless => 'test $(yum --assumeno group install DVT-Full 2>/dev/null| grep -c "^Install.*Package\|^Upgrade.*Package") -eq 0',
timeout => $timeout,
require => Exec["yum-groupinstall-${name}"],
}
Expand Down

0 comments on commit aa95bc6

Please sign in to comment.