aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/proxy.pp
blob: cf05c23941f67a5f3220a9d20556b518787501f4 (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
class nodo::role::proxy inherits nodo::base::virtual {
  class { 'nginx': }

  $munin = hiera('nodo::host::use_munin', false)
  if $munin == true {
    # 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,
    }
  }

  # TODO: Apt cacher: still buggy and needs hardening
  #package { 'apt-cacher-ng':
  #  ensure => present,
  #}
  #
  #service { 'apt-cacher-ng':
  #  ensure  => stopped,
  #  require => Package['apt-cacher-ng'],
  #}
}