]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Fix mistake in my 0c2329b implementation.
authorDaniel Friesen <daniel@redwerks.org>
Fri, 11 Jul 2014 21:33:15 +0000 (14:33 -0700)
committerMorgan Haskel <morgan@puppetlabs.com>
Fri, 8 Aug 2014 13:38:48 +0000 (09:38 -0400)
manifests/init.pp

index c00e9c56b33014dfb47a596dc9b77bb7ba27b8b0..6165711413eda0ce4711b891d576662f38565d63 100644 (file)
@@ -125,18 +125,18 @@ class apt(
       file { '01proxy':
         ensure  => absent,
         path    => "${apt_conf_d}/01proxy",
-        content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
         notify  => Exec['apt_update'],
-        mode    => '0644',
-        owner   => root,
-        group   => root,
       }
     }
     default: {
       file { '01proxy':
         ensure  => present,
         path    => "${apt_conf_d}/01proxy",
+        content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
         notify  => Exec['apt_update'],
+        mode    => '0644',
+        owner   => root,
+        group   => root,
       }
     }
   }