Make apt.conf.d/proxy world readable and add a newline
[puppet-modules/puppetlabs-apt.git] / manifests / init.pp
index 12db61a6df3b1c9080584436a02cc490e86e82a7..b0621fe1fb0efa2451141d5e53bf1c638fa79c7f 100644 (file)
@@ -128,8 +128,11 @@ Package: bogus-package\n",
   file { 'configure-apt-proxy':
     ensure  => $proxy_set,
     path    => "${apt_conf_d}/proxy",
-    content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";",
+    content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
     notify  => Exec['apt_update'],
+    mode    => '0644',
+    owner   => root,
+    group   => root,
   }
 
   # Need anchor to provide containment for dependencies.