2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_app_prod.each do |host| -%>
|
2012-11-01 15:47:50 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,web,frontends,prod_frontends,pageable_servers
|
2012-11-16 16:41:28 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2012-11-16 16:41:28 +01:00
|
|
|
|
2018-01-24 23:16:03 +01:00
|
|
|
<% @hosts_fullstack.each do |host| -%>
|
|
|
|
define host{
|
|
|
|
use generic-host
|
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
|
|
|
address <%= host %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,non_aws_host,web,frontends,staging_frontends,not_pageable_servers,postgresql,postgresql_primary
|
2018-01-24 23:16:03 +01:00
|
|
|
}
|
|
|
|
<% end -%>
|
|
|
|
|
2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_app_staging.each do |host| -%>
|
2012-11-16 16:41:28 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,web,frontends,staging_frontends,not_pageable_servers
|
2012-11-01 15:47:50 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2012-11-01 15:47:50 +01:00
|
|
|
|
2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_zmirror.each do |host| -%>
|
2012-11-01 15:47:50 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,non_aws_host,zmirror,zmirror_main
|
2012-11-01 15:47:50 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2012-11-21 20:22:42 +01:00
|
|
|
|
2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_zmirrorp.each do |host| -%>
|
2013-08-26 21:43:29 +02:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,non_aws_host,zmirror,zmirrorp
|
2013-08-26 21:43:29 +02:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2013-08-26 21:43:29 +02:00
|
|
|
|
2020-10-26 21:56:58 +01:00
|
|
|
<% @hosts_postgresql_primary.each do |host| -%>
|
2013-07-16 23:45:32 +02:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,postgresql,postgresql_primary,pageable_servers
|
2012-12-13 17:08:28 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2013-04-29 22:44:41 +02:00
|
|
|
|
2020-10-26 21:56:58 +01:00
|
|
|
<% @hosts_postgresql_replica.each do |host| -%>
|
2016-03-23 17:24:12 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,postgresql,pageable_servers
|
2016-03-23 17:24:12 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2016-03-23 17:24:12 +01:00
|
|
|
|
2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_stats.each do |host| -%>
|
2013-04-29 22:44:41 +02:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,not_pageable_servers
|
2013-04-29 22:44:41 +02:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2014-02-07 20:02:24 +01:00
|
|
|
|
2017-10-06 04:44:52 +02:00
|
|
|
<% @hosts_redis.each do |host| -%>
|
2014-02-07 20:02:24 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
2017-10-06 04:44:52 +02:00
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2020-07-10 04:15:30 +02:00
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,not_pageable_servers, redis
|
2014-02-07 20:02:24 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|
2021-03-18 04:04:15 +01:00
|
|
|
|
|
|
|
<% @hosts_smokescreen.each do |host| -%>
|
|
|
|
define host{
|
|
|
|
use generic-host
|
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
|
|
|
address <%= host %>.<%= @default_host_domain %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,pageable_servers,smokescreen
|
2021-03-18 04:04:15 +01:00
|
|
|
}
|
|
|
|
<% end -%>
|