wip
This commit is contained in:
parent
9ce47a0aa7
commit
422969e8d7
1 changed files with 13 additions and 7 deletions
|
@ -1,10 +1,4 @@
|
|||
% for acl_name, acl_content in acls.items():
|
||||
acl "${acl_name}" {
|
||||
% for ac in sorted(acl_content, key=lambda e: (not e.startswith('!'), not e.startswith('key'), e)):
|
||||
${ac};
|
||||
% endfor
|
||||
};
|
||||
% endfor
|
||||
# KEYS
|
||||
|
||||
% for view_name, view_conf in views.items():
|
||||
% for key_name, key_conf in sorted(view_conf['keys'].items()):
|
||||
|
@ -15,6 +9,18 @@ key "${key_name}" {
|
|||
% endfor
|
||||
% endfor
|
||||
|
||||
# ACL
|
||||
|
||||
% for acl_name, acl_content in acls.items():
|
||||
acl "${acl_name}" {
|
||||
% for ac in sorted(acl_content, key=lambda e: (not e.startswith('!'), not e.startswith('key'), e)):
|
||||
${ac};
|
||||
% endfor
|
||||
};
|
||||
% endfor
|
||||
|
||||
# VIEWS
|
||||
|
||||
% for view_name, view_conf in views.items():
|
||||
view "${view_name}" {
|
||||
match-clients {
|
||||
|
|
Loading…
Reference in a new issue