Compare commits

..

1 Commits

Author SHA1 Message Date
f8fa65f715 users: manage ssh authorised keys
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-19 15:08:02 +01:00
5 changed files with 6 additions and 14 deletions

View File

@ -1,3 +0,0 @@
{{ saltenv }}:
'*':
[]

View File

@ -1 +0,0 @@
[]

View File

@ -11,10 +11,10 @@ salt-minion:
restart-salt-minion: restart-salt-minion:
cmd.run: cmd.run:
- name: sleep 10 && systemctl restart salt-minion - name: "sleep 10 && systemctl restart salt-minion --no-block"
- bg: true - bg: true
- order: last - order: last
- onchanges: - watch:
- pkg: salt-minion - pkg: salt-minion
- file: /etc/salt/minion - file: /etc/salt/minion
- require: - require:
@ -34,7 +34,6 @@ restart-salt-minion:
check-minion-config: check-minion-config:
cmd.run: cmd.run:
- name: sudo salt-call --local --skip-grains test.true - name: sudo salt-call --local --skip-grains test.ping
- onchanges: - watch:
- pkg: salt-minion
- file: /etc/salt/minion - file: /etc/salt/minion

View File

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

View File

@ -4,9 +4,6 @@
{%- 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 %}