Template out known_users.csv, optionally add groups

This commit is contained in:
Dann Bohn
2017-07-14 09:27:20 -04:00
parent 637f445c3f
commit d1f58fed4c
3 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
{% for user in kube_users %}
{{kube_users[user].pass}},{{user}},{{kube_users[user].role}}{% if kube_users[user].groups is defined %},{% set groups_csv = kube_users[user].groups|join(',') -%}"{{groups_csv}}"{% endif %}
{% endfor %}