avoid obligation to declare "extra" in munin_hosts
avoid obligation to declare "extra" param in munin_hosts list
allow this simple syntax :
munin_hosts:
- {
name: "localhost",
address: "127.0.0.1"
}
master
parent
6ba30a9f6c
commit
a9f2e76201
|
|
@ -2,10 +2,10 @@
|
||||||
{% for host in munin_hosts %}
|
{% for host in munin_hosts %}
|
||||||
[{{ host.name }}]
|
[{{ host.name }}]
|
||||||
address {{ host.address }}
|
address {{ host.address }}
|
||||||
{% if host.extra %}
|
{% if host.extra is defined %}
|
||||||
{% for extra in host.extra %}
|
{% for extra in host.extra %}
|
||||||
{{ extra }}
|
{{ extra }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue