aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/proxy.pp
blob: 5c6dbd7ebb7db4093b3e9a5ce2f0055a0d6b0e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class nodo::role::proxy inherits nodo::base::vserver {
  include nginx

  # Graph nginx
  munin::plugin { [ 'nginx_request', 'nginx_status' ]:
    ensure => present,
    config => 'env.url http://localhost/nginx_status',
  }

  # Needed by munin plugins
  package { 'liblwp-useragent-determined-perl':
    ensure => installed,
  }

  # Apt cacher
  package { 'apt-cacher-ng':
    ensure => latest,
  }

  service { 'apt-cacher-ng':
    ensure  => running,
    require => Package['apt-cacher-ng'],
  }

  class { 'apt::proxy_client':
    require => Service['apt-cacher-ng'],
  }
}