diff --git a/manifests/package/redhat.pp b/manifests/package/redhat.pp index 475baf4c8..69f6df4f7 100644 --- a/manifests/package/redhat.pp +++ b/manifests/package/redhat.pp @@ -95,7 +95,7 @@ } } - if $dnfmodule and fact('os.name') in ['RedHat', 'CentOS', 'VirtuozzoLinux'] and versioncmp(fact('os.release.full'), '8.0') >= 0 { + if $dnfmodule and fact('os.name') in ['RedHat', 'CentOS', 'VirtuozzoLinux'] and versioncmp(fact('os.release.major'), '8') >= 0 { package { "nginx:${dnfmodule}": ensure => $dnfmodule, name => 'nginx',