X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Finit.pp;h=7d243edd7b947369f0334f096a4d8f98c08b2688;hb=0ac5939f9b8225af4780bd5836a7939ec121e303;hp=5668d110059d0b82afca2b026e700463e4b86c61;hpb=e5f2dfe294a563f5ebcec3d31949a81e1815db6e;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/init.pp b/manifests/init.pp index 5668d11..7d243ed 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -42,7 +42,7 @@ class apt( } $sources_list_content = $purge_sources_list ? { - false => undef, + false => undef, true => "# Repos managed by puppet.\n", } @@ -62,7 +62,7 @@ class apt( file { 'sources.list.d': ensure => directory, - path => $sources_list_d + path => $sources_list_d, owner => root, group => root, purge => $purge_sources_list_d, @@ -93,10 +93,11 @@ class apt( default: { fail('Valid values for disable_keys are true or false') } } - if($proxy_host) { + if ($proxy_host) { file { 'configure-apt-proxy': path => "${apt_conf_d}/proxy", content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";", + notify => Exec['apt_update'], } } }