bundlewrap/bundles/icinga2/files/icinga2/api-users.conf
Franziska Kunsmann fbb8840dff
All checks were successful
bundlewrap/pipeline/head This commit looks good
add .editorconfig, format files correctly
2021-02-17 10:56:18 +01:00

7 lines
241 B
Text

% for user, config in sorted(node.metadata.get('icinga2', {}).get('api_users', {}).items()):
object ApiUser "${user}" {
password = "${config['password']}"
permissions = [ "${'", "'.join(sorted(config['permissions']))}" ]
}
% endfor