aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/proxy.pp
blob: 0df5fab63ca7581dc9fc7b53c45f76f131fc0146 (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
29
30
31
32
33
34
35
36
37
38
class nodo::role::proxy inherits nodo::base::vserver {
  class { 'nginx': }

  ssl::cert { "$::domain":
    notify => Service['nginx'],
  }

  # For SNI
  # TODO: generate automatically
  ssl::cert { "example.org":
    #generate => true,
    verify => false,
    notify => Service['nginx'],
  }

  # Graph nginx
  include munin::client
  include munin::client::package
  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 => purged,
  }

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