This commit is contained in:
Jonas Forsberg
2021-10-12 10:15:14 +02:00
parent bb70c7e43f
commit 1a6f230702
4 changed files with 11 additions and 0 deletions

7
salt/states/ssh/init.sls Normal file
View File

@@ -0,0 +1,7 @@
{% if pillar['ssh']['user-pub-keys'] %}
{{ pillar['username'] }}_autherized_keys:
ssh_auth:
- present
- user: {{ pillar['username'] }}
- names: {{ pillar['ssh']['user-pub-keys'] }}
{% endif %}