Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouplist to group list #339

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
12 changes: 6 additions & 6 deletions manifests/group.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,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), ' '),
onlyif => "yum group info '${name}' | egrep '\\s+\\+'",
timeout => $timeout,
require => Exec["yum-groupinstall-${name}"],
}
Expand All @@ -47,8 +47,8 @@

'absent', 'purged': {
exec { "yum-groupremove-${name}":
command => "yum -y groupremove '${name}'",
onlyif => "yum grouplist hidden '${name}' | egrep -i '^Installed.+Groups:$'",
command => "yum -y group remove '${name}'",
onlyif => "yum group list hidden '${name}' | egrep -i '^Installed.+Groups:$'",
timeout => $timeout,
}
}
Expand Down
6 changes: 6 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system RedHat 7

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system CentOS 7

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system CentOS 8
"name": "puppet-yum",
"version": "5.3.1-rc0",
"author": "Vox Pupuli",
Expand Down Expand Up @@ -76,6 +76,12 @@
"operatingsystemrelease": [
"8"
]
},
{
"operatingsystem": "Fedora"
},
{
"operatingsystem": "Nobara"
}
],
"requirements": [
Expand Down
Loading