Compare commits

...

2 Commits

Author SHA1 Message Date
37e659cfc3
users: add Docker group to admin users
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-19 15:13:34 +01:00
05d7cef80c
users: manage ssh authorised keys
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-19 15:10:01 +01:00
2 changed files with 8 additions and 0 deletions

View File

@ -16,4 +16,9 @@
{%- if user.shell is defined %} {%- if user.shell is defined %}
- shell: {{ user.shell }} - shell: {{ user.shell }}
{%- endif %} {%- endif %}
ssh_auth.manage:
- user: {{ name }}
{%- if user['ssh-keys'] is defined %}
- ssh_keys: {{ user['ssh-keys']|json }}
{%- endif %}
{%- endfor %} {%- endfor %}

View File

@ -4,6 +4,9 @@
{%- do admin_groups.append('systemd-journal') %} {%- do admin_groups.append('systemd-journal') %}
{%- endif %} {%- endif %}
{# FIXME(frebib): manage Docker group instead of blindly adding it #}
{%- do admin_groups.append('docker') %}
frebib: frebib:
groups: groups:
{%- for group in admin_groups %} {%- for group in admin_groups %}