2020-12-20 08:33:17 +00:00
|
|
|
% for user, config in sorted(node.metadata.get('icinga2', {}).get('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
|