]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Managing apt-cacher-ng at nodo::role::proxy
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Dec 2013 16:25:46 +0000 (14:25 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Dec 2013 16:25:46 +0000 (14:25 -0200)
manifests/role/proxy.pp
manifests/subsystem/apt.pp

index c298f962411d8c2d0460bb5708e871b8fb62cbf1..bd0e825ac326af9faa306df326877dfb8963774c 100644 (file)
@@ -11,4 +11,13 @@ class nodo::role::proxy inherits nodo::base::vserver {
   package { 'liblwp-useragent-determined-perl':
     ensure => installed,
   }
+
+  # Apt cacher
+  package { 'apt-cacher-ng':
+    ensure => present,
+  }
+
+  class { 'apt::proxy_client':
+    require => Package['apt-cacher-ng'],
+  }
 }
index 910565776f69e96253b69c27d8ac2182e3239b5d..3bb60a409e3dbb83328cdfd0648c81904111a0bb 100644 (file)
@@ -38,7 +38,7 @@ class nodo::subsystem::apt {
   if $apt_proxy != false {
     class { 'apt::proxy_client':
       proxy => $apt_proxy,
-      port  => hiera('nodo::subsystem::apt::proxy_port', ''),
+      port  => hiera('nodo::subsystem::apt::proxy_port', '3142'),
     }
   }