X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fparams.pp;h=3ce8f4864007f151262e64f0fab3208bfa1ed5a3;hb=refs%2Fheads%2Fpdksync_%28MAINT%29_Pin_puppetlabs-puppet_agent;hp=ae656dbf8f7fde2a8eb5f8c0b94cacf1b629661b;hpb=0e0005cedd13e44882ef569ec668546cb8620b28;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/params.pp b/manifests/params.pp index ae656db..3ce8f48 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,7 +3,6 @@ # @api private # class apt::params { - if $facts['os']['family'] != 'Debian' { fail('This module only works on Debian or derivatives like Ubuntu') } @@ -44,7 +43,7 @@ class apt::params { 'list' => { 'path' => $sources_list_d, 'ext' => '.list', - } + }, } $update_defaults = { @@ -76,12 +75,12 @@ class apt::params { 'src' => false, } - case $facts['os']['name']{ + case $facts['os']['name'] { 'Debian': { - $backports = { - 'location' => 'http://deb.debian.org/debian', - 'repos' => 'main contrib non-free', - } + $backports = { + 'location' => 'http://deb.debian.org/debian', + 'repos' => 'main contrib non-free', + } $ppa_options = undef $ppa_package = undef $auth_conf_owner = '_apt' @@ -92,7 +91,7 @@ class apt::params { 'key' => '630239CC130E1A7FD81A27B140976EAF437D05B5', 'repos' => 'main universe multiverse restricted', } - $ppa_options = '-y' + $ppa_options = ['-y'] $ppa_package = 'software-properties-common' $auth_conf_owner = '_apt' }