ansible-role-icinga2/templates/users.conf.j2

23 lines
595 B
Text
Raw Normal View History

2021-01-03 15:10:04 +00:00
# {{ ansible_managed }}
{% for name, group in icinga2_user_groups.items() %}
object UserGroup "{{ name }}" {
display_name = "{{ group.display_name|default(name) }}"
}
{% endfor %}
{% for name, user in icinga2_users.items() %}
object User "{{ name }}" {
display_name = "{{ user.display_name|default(name) }}"
2021-12-09 11:23:24 +00:00
groups = [ "{{ user.groups|join('", "') }}" ]
2021-01-03 15:10:04 +00:00
email = "{{ user.email }}"
}
{% endfor %}
{% for name, user in icinga2_api_users.items() %}
object ApiUser "{{ name }}" {
password = "{{ user.password }}"
2021-12-09 11:23:24 +00:00
permissions = [ "{{ user.permissions|join('", "') }}" ]
2021-01-03 15:10:04 +00:00
}
{% endfor %}