From ebc04248814f2a52a3f750c1bbada6945bed280b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 28 Sep 2019 20:44:46 +0200 Subject: [PATCH] whitespace --- modules/postgres/manifests/init.pp | 64 +++++++++++++++--------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/modules/postgres/manifests/init.pp b/modules/postgres/manifests/init.pp index d14631012..4c2875059 100644 --- a/modules/postgres/manifests/init.pp +++ b/modules/postgres/manifests/init.pp @@ -1,36 +1,38 @@ +# base class for a host with postgres installed # +# This just provides some common infrastructure and monitoring. class postgres { - $ensure = ($::postgres) ? { - true => 'present', - default => 'absent' - } + $ensure = ($::postgres) ? { + true => 'present', + default => 'absent' + } - munin::check { 'postgres_bgwriter': - ensure => $ensure, - } - munin::check { 'postgres_connections_db': - ensure => $ensure, - } - munin::check { 'postgres_cache_ALL': - ensure => $ensure, - script => 'postgres_cache_' - } - munin::check { 'postgres_querylength_ALL': - ensure => $ensure, - script => 'postgres_querylength_' - } - munin::check { 'postgres_size_ALL': - ensure => $ensure, - script => 'postgres_size_' - } + munin::check { 'postgres_bgwriter': + ensure => $ensure, + } + munin::check { 'postgres_connections_db': + ensure => $ensure, + } + munin::check { 'postgres_cache_ALL': + ensure => $ensure, + script => 'postgres_cache_' + } + munin::check { 'postgres_querylength_ALL': + ensure => $ensure, + script => 'postgres_querylength_' + } + munin::check { 'postgres_size_ALL': + ensure => $ensure, + script => 'postgres_size_' + } - file { '/etc/munin/plugin-conf.d/local-postgres': - ensure => $ensure, - source => 'puppet:///modules/postgres/plugin.conf', - } - file { '/usr/local/sbin/dsa-restart-all-idle-postgres': - ensure => $ensure, - source => 'puppet:///modules/postgres/dsa-restart-all-idle-postgres', - mode => '0555', - } + file { '/etc/munin/plugin-conf.d/local-postgres': + ensure => $ensure, + source => 'puppet:///modules/postgres/plugin.conf', + } + file { '/usr/local/sbin/dsa-restart-all-idle-postgres': + ensure => $ensure, + source => 'puppet:///modules/postgres/dsa-restart-all-idle-postgres', + mode => '0555', + } } -- 2.20.1