Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d547c7f607
commit
096a3e0540
69 changed files with 1650 additions and 0 deletions
10
templates/nagios/conf.d/hostgroups.cfg.j2
Normal file
10
templates/nagios/conf.d/hostgroups.cfg.j2
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
{% for hostgroup in nagios_hostgroups | default([]) %}
|
||||
define hostgroup {
|
||||
hostgroup_name {{ hostgroup['hostgroup_name'] }}
|
||||
alias {{ hostgroup['alias'] }}
|
||||
members {{ hostgroup['members'] | sort | join(',') }}
|
||||
}
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue