mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
puppet: Specify hosts for the postgres autovac_freeze check via a hostgroup
(imported from commit d0afc1b78015740fa9638563a5672d3400dd5002)
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
|||||||
@@ -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{
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user