diff --git a/manifests/install.pp b/manifests/install.pp index 8b56da035..356205172 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -108,7 +108,12 @@ } elsif ($::osfamily == 'RedHat') and ($package_version != 'present') { # Workaround PUP-5802/PUP-5025 package { $::puppet_agent::package_name: - ensure => "${package_version}-1.el${::operatingsystemmajrelease}", + if $::operatingsystemname == 'fedora' { + $pkg_os_suffix = 'fedoraf' + } else { + $pkg_os_suffix = 'el' + } + ensure => "${package_version}-1.${pkg_os_suffix}${::operatingsystemmajrelease}", * => $_package_options, } } elsif ($::osfamily == 'Debian') and ($package_version != 'present') {