X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=149e4c96d86ca65ae6820639d6dc193a4909093f;hb=ad8e00becec7cb4e90122a716d62874e70b9be7f;hp=52b9bca3fcaa231c6f9a4ab997df448cd7a1e9e9;hpb=9a15c71df0bab0c633008a4b09eef1792f8e7904;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index 52b9bca..149e4c9 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -16,7 +16,9 @@ class apt::params { $conf_d = "${root}/apt.conf.d" $preferences = "${root}/preferences" $preferences_d = "${root}/preferences.d" + $apt_conf_d = "${root}/apt.conf.d" $keyserver = 'keyserver.ubuntu.com' + $key_options = undef $confs = {} $update = {} $purge = {} @@ -52,11 +54,12 @@ class apt::params { } $proxy_defaults = { - 'ensure' => undef, - 'host' => undef, - 'port' => 8080, - 'https' => false, - 'direct' => false, + 'ensure' => undef, + 'host' => undef, + 'port' => 8080, + 'https' => false, + 'https_acng' => false, + 'direct' => false, } $purge_defaults = { @@ -64,6 +67,7 @@ class apt::params { 'sources.list.d' => false, 'preferences' => false, 'preferences.d' => false, + 'apt.conf.d' => false, } $source_key_defaults = { @@ -82,11 +86,15 @@ class apt::params { 'Debian': { $backports = { 'location' => 'http://deb.debian.org/debian', - 'key' => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553', 'repos' => 'main contrib non-free', } $ppa_options = undef $ppa_package = undef + if versioncmp($facts['os']['release']['major'], '9') >= 0 { + $auth_conf_owner = '_apt' + } else { + $auth_conf_owner = 'root' + } } 'Ubuntu': { $backports = { @@ -96,6 +104,11 @@ class apt::params { } $ppa_options = '-y' $ppa_package = 'software-properties-common' + if versioncmp($facts['os']['release']['full'], '16.04') >= 0 { + $auth_conf_owner = '_apt' + } else { + $auth_conf_owner = 'root' + } } undef: { fail(translate('Unable to determine value for fact os[\"name\"]')) @@ -104,6 +117,7 @@ class apt::params { $ppa_options = undef $ppa_package = undef $backports = undef + $auth_conf_owner = 'root' } } }