ansible.xymon/templates/etc/xymon/libs.local.yaml.j2

18 lines
515 B
Plaintext
Raw Normal View History

# {{ ansible_managed }}
## From ipr-cnrs.xymon role
2020-11-03 15:17:08 +01:00
{% set inputmerged = xymon_cli__plug_libs_default_whitelist.copy() %}
{% set _ = inputmerged.update(xymon_cli__plug_libs_whitelist) %}
{% set _ = inputmerged.update(xymon_cli__plug_libs_group_whitelist) %}
{% set _ = inputmerged.update(xymon_cli__plug_libs_host_whitelist) %}
---
whitelist:
{% for group, rules in inputmerged|dictsort %}
{{ group }}:
{% if not rules %}
# (none)
{% endif %}
{% for rule in rules %}
- '{{ rule }}'
{% endfor %}
{% endfor %}