mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
puppet: Support FQDNs in puppet zulip.conf names.
This commit is contained in:
committed by
Tim Abbott
parent
df201bd132
commit
e05a0dcf98
@@ -3,7 +3,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,fullstack,non_aws_host,frontends,not_pageable_servers,postgresql
|
hostgroups all,fullstack,non_aws_host,frontends,not_pageable_servers,postgresql
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -13,7 +13,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,prod_frontends,pageable_servers
|
hostgroups all,aws_host,prod_frontends,pageable_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -23,7 +23,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,staging_frontends,not_pageable_servers
|
hostgroups all,aws_host,staging_frontends,not_pageable_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -33,7 +33,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,non_aws_host,zmirror,flaky_servers
|
hostgroups all,non_aws_host,zmirror,flaky_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -43,7 +43,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,non_aws_host,zmirrorp,flaky_servers
|
hostgroups all,non_aws_host,zmirrorp,flaky_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -53,7 +53,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,postgresql_primary,pageable_servers
|
hostgroups all,aws_host,postgresql_primary,pageable_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -63,7 +63,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,postgresql_replica,pageable_servers
|
hostgroups all,aws_host,postgresql_replica,pageable_servers
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -73,7 +73,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,not_pageable_servers, redis
|
hostgroups all,aws_host,not_pageable_servers, redis
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -83,7 +83,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,pageable_servers,smokescreen
|
hostgroups all,aws_host,pageable_servers,smokescreen
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
@@ -93,7 +93,7 @@ define host{
|
|||||||
use generic-host
|
use generic-host
|
||||||
host_name <%= host %>
|
host_name <%= host %>
|
||||||
alias <%= host %>
|
alias <%= host %>
|
||||||
address <%= host %>.<%= @default_host_domain %>
|
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
hostgroups all,aws_host,not_pageable_servers,other
|
hostgroups all,<% if host.include?(".") %>non_<% end %>aws_host,not_pageable_servers,other
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ i = 0
|
|||||||
@hosts.each do |host|
|
@hosts.each do |host|
|
||||||
-%>
|
-%>
|
||||||
[program:munin-tunnel-<%= host %>]
|
[program:munin-tunnel-<%= host %>]
|
||||||
command=autossh -N -M <%= 20000 + 2 * i %> -L <%= 5000 + i %>:localhost:4949 nagios@<%= host %>.<%= @default_host_domain %>
|
command=autossh -N -M <%= 20000 + 2 * i %> -L <%= 5000 + i %>:localhost:4949 nagios@<%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
|||||||
Reference in New Issue
Block a user