bundlewrap/bundles/icinga2/files/icinga2/api-users.conf

8 lines
230 B
Text
Raw Normal View History

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