From: Silvio Rhatto Date: Mon, 23 Dec 2013 16:25:46 +0000 (-0200) Subject: Managing apt-cacher-ng at nodo::role::proxy X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f72d2eda439cbb6b50112ccfcc7947359d6e9f4f;p=puppet-nodo.git Managing apt-cacher-ng at nodo::role::proxy --- 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'), } }