2021-02-18 17:12:25 +00:00
|
|
|
% for user, config in sorted(node.metadata.get('icinga2/api_users', {}).items()):
|
2020-11-21 09:29:36 +00:00
|
|
|
object ApiUser "${user}" {
|
2021-02-17 09:56:18 +00:00
|
|
|
password = "${config['password']}"
|
|
|
|
permissions = [ "${'", "'.join(sorted(config['permissions']))}" ]
|
2020-11-21 09:29:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% endfor
|