aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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'),
}
}