Commit b585c28a authored by Ruben De Smet's avatar Ruben De Smet
Browse files

Add per-host possibility for object logic

parent 333e41f8
# {{ ansible_managed }}
{% if hostvars[item]['group_names'] | difference('monitoring_servers') %}
# A host definition
object Host "{{ hostvars[item]['ansible_fqdn'] }}" {
......@@ -13,6 +15,14 @@ object Host "{{ hostvars[item]['ansible_fqdn'] }}" {
{{ attribute }} = {{ value }}
{% endfor %}
{% endif %}
{% if 'icinga_host_templates' in hostvars[item] %}
{% for template in hostvars[item].icinga_host_templates %}
{% include template %}
# Intentional newline
{% endfor %}
{% endif %}
}
#Here Goes Checks if Any
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment