Put mirror-master only on klecker and mirror-isc
[mirror/dsa-puppet.git] / modules / postgres / manifests / init.pp
1 #
2 class postgres {
3         $ensure = ($::postgres) ? {
4                 true    => 'present',
5                 default => 'absent'
6         }
7
8         munin::check { 'postgres_bgwriter':
9                 ensure => $ensure,
10                 }
11         munin::check { 'postgres_connections_db':
12                 ensure => $ensure,
13                 }
14         munin::check { 'postgres_cache_ALL':
15                 ensure => $ensure,
16                 script => 'postgres_cache_'
17         }
18         munin::check { 'postgres_querylength_ALL':
19                 ensure => $ensure,
20                 script => 'postgres_querylength_'
21         }
22         munin::check { 'postgres_size_ALL':
23                 ensure => $ensure,
24                 script => 'postgres_size_'
25         }
26
27         file { '/etc/munin/plugin-conf.d/local-postgres':
28                 ensure => $ensure,
29                 source  => 'puppet:///modules/postgres/plugin.conf',
30         }
31 }