From f72d2eda439cbb6b50112ccfcc7947359d6e9f4f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 23 Dec 2013 14:25:46 -0200 Subject: Managing apt-cacher-ng at nodo::role::proxy --- manifests/role/proxy.pp | 9 +++++++++ manifests/subsystem/apt.pp | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'manifests') 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'), } } -- cgit v1.2.3