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 %>
|
2018-11-07 01:31:41 +01:00
|
|
|
hostgroups all,web,frontends,prod_frontends,singletornado_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 %>
|
2020-10-26 22:00:36 +01:00
|
|
|
hostgroups all,web,frontends,staging_frontends,singletornado_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 %>
|
2018-11-07 01:31:41 +01:00
|
|
|
hostgroups all,web,frontends,staging_frontends,singletornado_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 %>
|
2017-10-06 04:58:35 +02:00
|
|
|
hostgroups all,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 %>
|
2017-10-06 04:58:35 +02:00
|
|
|
hostgroups all,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 %>
|
2020-10-26 22:00:36 +01:00
|
|
|
hostgroups all,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 %>
|
2020-10-26 22:00:36 +01:00
|
|
|
hostgroups all,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 %>
|
2013-06-04 22:07:49 +02:00
|
|
|
hostgroups all,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 %>
|
2017-10-06 04:44:52 +02:00
|
|
|
hostgroups all,not_pageable_servers, redis
|
2014-02-07 20:02:24 +01:00
|
|
|
}
|
2017-10-06 04:44:52 +02:00
|
|
|
<% end -%>
|