2022-06-14 01:11:57 +02:00
|
|
|
<% @hosts_fullstack.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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 03:34:36 +02:00
|
|
|
hostgroups all,fullstack,non_aws_host,frontends,not_pageable_servers,postgresql
|
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
|
|
|
|
2022-06-14 01:11:57 +02:00
|
|
|
<% @hosts_app_prod.each do |host| -%>
|
2018-01-24 23:16:03 +01:00
|
|
|
define host{
|
|
|
|
use generic-host
|
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 01:30:07 +02:00
|
|
|
hostgroups all,aws_host,prod_frontends,pageable_servers
|
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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 01:30:07 +02:00
|
|
|
hostgroups all,aws_host,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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 01:17:21 +02:00
|
|
|
hostgroups all,non_aws_host,zmirror,flaky_servers
|
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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 01:17:21 +02:00
|
|
|
hostgroups all,non_aws_host,zmirrorp,flaky_servers
|
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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 01:18:21 +02:00
|
|
|
hostgroups all,aws_host,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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-14 03:34:36 +02:00
|
|
|
hostgroups all,aws_host,postgresql_replica,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_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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
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 %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
2022-06-13 23:56:59 +02:00
|
|
|
hostgroups all,aws_host,pageable_servers,smokescreen
|
2021-03-18 04:04:15 +01:00
|
|
|
}
|
|
|
|
<% end -%>
|
2022-06-14 02:12:01 +02:00
|
|
|
|
|
|
|
<% @hosts_other.each do |host| -%>
|
|
|
|
define host{
|
|
|
|
use generic-host
|
|
|
|
host_name <%= host %>
|
|
|
|
alias <%= host %>
|
2022-11-01 20:01:00 +01:00
|
|
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
|
|
|
hostgroups all,<% if host.include?(".") %>non_<% end %>aws_host,not_pageable_servers,other
|
2022-06-14 02:12:01 +02:00
|
|
|
}
|
|
|
|
<% end -%>
|