diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 12:41:36 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 12:41:36 +0200 |
commit | 625907f0177d335c05c05ae66ae49e20287d14b0 (patch) | |
tree | e5c4118c42401206ff12a2f1a2b6a537c51922de /modules/profile/manifests/postgresql/master.pp | |
parent | e5cc123b5d9d871cf20ea947df9352a54a007b7b (diff) | |
parent | 21d531ee2e4a5952673d694342ff01822581a1f8 (diff) | |
download | Puppet-625907f0177d335c05c05ae66ae49e20287d14b0.tar.gz Puppet-625907f0177d335c05c05ae66ae49e20287d14b0.tar.zst Puppet-625907f0177d335c05c05ae66ae49e20287d14b0.zip |
Merge branch 'dev'
Diffstat (limited to 'modules/profile/manifests/postgresql/master.pp')
-rw-r--r-- | modules/profile/manifests/postgresql/master.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/profile/manifests/postgresql/master.pp b/modules/profile/manifests/postgresql/master.pp index 02315a6..99ac4c4 100644 --- a/modules/profile/manifests/postgresql/master.pp +++ b/modules/profile/manifests/postgresql/master.pp | |||
@@ -59,5 +59,15 @@ define profile::postgresql::master ( | |||
59 | handle_slot => true, | 59 | handle_slot => true, |
60 | add_self_role => true, | 60 | add_self_role => true, |
61 | } | 61 | } |
62 | |||
63 | @profile::monitoring::local_service { "Postgresql replication for $backup_host is up to date": | ||
64 | sudos => { | ||
65 | "naemon-postgresql-replication-$backup_host" => "naemon ALL=(postgres) NOPASSWD: /etc/naemon/monitoring-plugins/check_postgres_replication $backup_host /run/postgresql 5432" | ||
66 | |||
67 | }, | ||
68 | local => { | ||
69 | check_command => "check_postgresql_replication!$backup_host!/run/postgresql!5432", | ||
70 | } | ||
71 | } | ||
62 | } | 72 | } |
63 | } | 73 | } |