Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# User who runs the cron job
#
# @param manage_yum_utils [Boolean]
# Should the yum_utils package be managed by this module on RedHat family nodes?
# Should the yum_utils/dnf_utils package be managed by this module on RedHat family nodes?
# If `true`, use the parameter `yum_utils` to determine how it should be manged
#
# @param block_patching_on_warnings [Boolean]
Expand Down Expand Up @@ -323,9 +323,14 @@
case $facts['kernel'] {
'FreeBSD', 'Linux': {
if ( $facts['os']['family'] == 'RedHat' and $manage_yum_utils) {
package { 'yum-utils':
ensure => $yum_utils,
}
if ( Integer($facts['os']['release']['major']) < 8) {
package { 'yum-utils':
ensure => $yum_utils,
}
} else {
package { 'dnf-utils':
ensure => $yum_utils,
}
}

if ( $facts['os']['family'] == 'RedHat' and $manage_delta_rpm) {
Expand All @@ -341,7 +346,7 @@
}
}

if ( $facts['os']['family'] == 'RedHat' and $manage_yum_plugin_security) {
if ( $facts['os']['family'] == 'RedHat' and $manage_yum_plugin_security and Integer($facts['os']['release']['major']) < 8 ) {
package { 'yum-plugin-security':
ensure => $yum_plugin_security,
}
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"operatingsystemrelease": [
"6",
"7",
"8"
"8",
"9"
]
},
{
Expand Down