X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=ae26a7dfda57248a5a02b22fb0a7073b44e855d0;hb=9f2fd0cb6d191e7883a140fb160d8fefaa685a66;hp=c954aa36dc4335b28346fa47028df6839f720b22;hpb=292b6ff966e7cdc21659ce04bd4d4cd612ced4b6;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index c954aa3..ae26a7d 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,14 +1,18 @@ -# Setting params for the module +# @summary Provides defaults for the Apt module parameters. +# +# @api private +# class apt::params { if $::osfamily != 'Debian' { - fail('This module only works on Debian or derivatives like Ubuntu') + fail(translate('This module only works on Debian or derivatives like Ubuntu')) } $root = '/etc/apt' $provider = '/usr/bin/apt-get' $sources_list = "${root}/sources.list" $sources_list_d = "${root}/sources.list.d" + $trusted_gpg_d = "${root}/trusted.gpg.d" $conf_d = "${root}/apt.conf.d" $preferences = "${root}/preferences" $preferences_d = "${root}/preferences.d" @@ -22,6 +26,7 @@ class apt::params { $ppas = {} $pins = {} $settings = {} + $auth_conf_entries = [] $config_files = { 'conf' => { @@ -92,7 +97,7 @@ class apt::params { $ppa_package = 'software-properties-common' } undef: { - fail('Unable to determine value for fact os["name"]') + fail(translate('Unable to determine value for fact os[\"name\"]')) } default: { $ppa_options = undef