Skip to content

Commit

Permalink
-fix logic for ensure => present and missing packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
m3n3pm committed Dec 30, 2024
1 parent 38cd198 commit f6616e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'present', 'installed', default: {
exec { "yum-groupinstall-${name}":
command => join(concat(["yum -y group install '${name}'"], $install_options), ' '),
unless => "yum group list hidden '${name}' | egrep -i '^Installed.+Groups:$'",
unless => "test $(yum --assumeno group install '${name}' 2>/dev/null| grep -c '^Install.*Package') -eq 0",
timeout => $timeout,
}
if $ensure == 'latest' {
Expand Down

0 comments on commit f6616e7

Please sign in to comment.