puppet: Specify hosts for the postgres autovac_freeze check via a hostgroup

(imported from commit d0afc1b78015740fa9638563a5672d3400dd5002)
This commit is contained in:
Zev Benjamin
2013-11-23 12:08:49 -05:00
parent 139518ccbe
commit 847d4dfbca
3 changed files with 8 additions and 3 deletions

View File

@@ -34,3 +34,8 @@ define hostgroup {
hostgroup_name postgres hostgroup_name postgres
alias PostgreSQL Servers alias PostgreSQL Servers
} }
define hostgroup {
hostgroup_name postgres_primary
alias PostgreSQL Servers
}

View File

@@ -75,7 +75,7 @@ define host{
host_name postgres2 host_name postgres2
alias postgres2 alias postgres2
address postgres2.zulip.net address postgres2.zulip.net
hostgroups all,postgres,pageable_servers hostgroups all,postgres,postgres_primary,pageable_servers
} }
define host{ define host{

View File

@@ -113,7 +113,7 @@ define service {
use generic-service use generic-service
service_description Check postgres autovac_freeze service_description Check postgres autovac_freeze
check_command check_postgres!22!autovac_freeze check_command check_postgres!22!autovac_freeze
host postgres2 hostgroup postgres_primary
contact_groups admins contact_groups admins
} }