aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-23 14:25:46 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-23 14:25:46 -0200
commitf72d2eda439cbb6b50112ccfcc7947359d6e9f4f (patch)
tree3df3a715af6b950defe9d0bfc2bad0db5811681b
parentb98810c50d24b8bafed3512feea5812f9ecc544a (diff)
downloadpuppet-nodo-f72d2eda439cbb6b50112ccfcc7947359d6e9f4f.tar.gz
puppet-nodo-f72d2eda439cbb6b50112ccfcc7947359d6e9f4f.tar.bz2
Managing apt-cacher-ng at nodo::role::proxy
-rw-r--r--manifests/role/proxy.pp9
-rw-r--r--manifests/subsystem/apt.pp2
2 files changed, 10 insertions, 1 deletions
diff --git a/manifests/role/proxy.pp b/manifests/role/proxy.pp
index c298f96..bd0e825 100644
--- a/manifests/role/proxy.pp
+++ b/manifests/role/proxy.pp
@@ -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'],
+ }
}
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp
index 9105657..3bb60a4 100644
--- a/manifests/subsystem/apt.pp
+++ b/manifests/subsystem/apt.pp
@@ -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'),
}
}