diff --git a/manifests/init.pp b/manifests/init.pp index e2cee8cb..fd0c8adb 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -118,8 +118,8 @@ $os['operatingsystem'] } - unless member($supported_os_names, $::os['name']) { - fail("${::os['name']} not supported") + unless member($supported_os_names, $facts['os']['name']) { + fail("${facts['os']['name']} not supported") } $_managed_repos = $manage_os_default_repos ? { diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 20e2aadf..02be68b9 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -23,7 +23,7 @@ if $pkg_prefix { $_pkg_prefix = $pkg_prefix } else { - $_pkg_prefix = $::os['release']['major'] ? { + $_pkg_prefix = $facts['os']['release']['major'] ? { Variant[Integer[5,5], Enum['5']] => 'yum', default => 'yum-plugin', }