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

7 lines
237 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