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

2
salt/pillars/ssh.sls Normal file
View File

@ -0,0 +1,2 @@
ssh:
user-pub-keys: []

View File

@ -6,6 +6,7 @@ base:
- rmt
- docker
- remote-desktop
- ssh
{% if salt['pillar.file_exists']('local.sls') %}
- local
{% endif %}

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 %}

View File

@ -81,6 +81,7 @@ class Main:
"rmt-server-mirror.timer",
"rmt-server-systems-scc-sync.timer",
"atftpd.socket",
"dnsmasq",
"mariadb"
]