X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Finit.pp;h=5f33fdba703920ddf94d2ea540ffc4ef2ed3497c;hb=443db5a7c24fc7186ed10d9dc5af5b8eaef88ede;hp=d64b013accbbaa3e1bb1ba3f34e17672ce798cc3;hpb=bf9b18740532f96da95e3531fecfaafd017eb88c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/init.pp b/manifests/init.pp index d64b013..5f33fdb 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -92,7 +92,7 @@ class apt( file { '/etc/apt/apt.conf.d/15update-stamp': ensure => 'file', - content => 'APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};', + content => template('apt/_header.erb', 'apt/15update-stamp.erb'), group => 'root', mode => '0644', owner => 'root', @@ -144,7 +144,7 @@ class apt( true: { file { '99progressbar': ensure => present, - content => 'Dpkg::Progress-Fancy "1";', + content => template('apt/_header.erb', 'apt/progressbar.erb'), path => "${apt_conf_d}/99progressbar", } } @@ -162,7 +162,7 @@ class apt( true: { file { '99unauth': ensure => present, - content => "APT::Get::AllowUnauthenticated 1;\n", + content => template('apt/_header.erb', 'apt/unauth.erb'), path => "${apt_conf_d}/99unauth", } } @@ -188,7 +188,7 @@ class apt( file { '01proxy': ensure => present, path => "${apt_conf_d}/01proxy", - content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n", + content => template('apt/_header.erb', 'apt/proxy.erb'), notify => Exec['apt_update'], mode => '0644', owner => root,