1 # base class for a host with postgres installed
3 # This just provides some common infrastructure and monitoring.
5 $ensure = ($::postgres) ? {
10 munin::check { 'postgres_bgwriter':
13 munin::check { 'postgres_connections_db':
16 munin::check { 'postgres_cache_ALL':
18 script => 'postgres_cache_'
20 munin::check { 'postgres_querylength_ALL':
22 script => 'postgres_querylength_'
24 munin::check { 'postgres_size_ALL':
26 script => 'postgres_size_'
29 file { '/etc/munin/plugin-conf.d/local-postgres':
31 source => 'puppet:///modules/postgres/plugin.conf',
33 file { '/usr/local/sbin/dsa-restart-all-idle-postgres':
35 source => 'puppet:///modules/postgres/dsa-restart-all-idle-postgres',