]> 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)
committerDaniel Friesen <daniel@redwerks.org>
Fri, 11 Jul 2014 21:33:15 +0000 (14:33 -0700)
manifests/init.pp

index 08f62d15d950a171006cf9dbc94fc4e3f260544c..1c318b67ca979259ef79933b6b0faf2dedb85f7d 100644 (file)
@@ -144,18 +144,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,
       }
     }
   }