Initial commit
This commit is contained in:
commit
c0dec80308
6 changed files with 489 additions and 0 deletions
12
templates/server.cfg.j2
Normal file
12
templates/server.cfg.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
define host {
|
||||
use linux-server
|
||||
host_name {{ inventory_hostname_short }}
|
||||
address {{ inventory_hostname }}
|
||||
hostgroups linux-servers{% if group_names | length > 0 %},{{ group_names | join(",") }}{% endif %}{% if nagios_extra_groups | length > 0 %},{{ nagios_extra_groups | join(",") }}{% endif %}
|
||||
|
||||
{% if mydomain is defined and mydomain != "ra.nemunai.re" -%}
|
||||
{% set dn = mydomain.split('.') %}
|
||||
parents {{ dn[0] }}
|
||||
{%- endif %}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue