summaryrefslogtreecommitdiffstats
path: root/salt/common/ssh.sls
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-26 23:05:21 +0100
committerGeorg Pfuetzenreuter2023-01-26 23:05:21 +0100
commit698234c0402eeff37517869695c75682a3fad332 (patch)
treee23a9ce4be37b8134d9bf14c1046d5ecf73ad540 /salt/common/ssh.sls
parentf949c0aba0bd9863474a35e1613eb23554acc449 (diff)
downloadsalt-698234c0402eeff37517869695c75682a3fad332.tar.gz
salt-698234c0402eeff37517869695c75682a3fad332.tar.bz2
salt-698234c0402eeff37517869695c75682a3fad332.zip
Manage common SSH server
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/common/ssh.sls')
-rw-r--r--salt/common/ssh.sls12
1 files changed, 12 insertions, 0 deletions
diff --git a/salt/common/ssh.sls b/salt/common/ssh.sls
new file mode 100644
index 0000000..76033fd
--- /dev/null
+++ b/salt/common/ssh.sls
@@ -0,0 +1,12 @@
+include:
+ - openssh.banner
+ - openssh.config
+
+/etc/ssh/user_ca:
+ file.managed:
+ - contents:
+ {%- for key in salt['pillar.get']('secret_ssh:userca_keys') -%}
+ - {{ key }}
+ {%- endfor -%}
+ - require:
+ - pkg: openssh