From de1f37983b42f491f8d0c92ce306e9eaf494a9ab Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 18 Oct 2021 08:05:10 +0200 Subject: [PATCH] . --- salt/states/ssh/init.sls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/salt/states/ssh/init.sls b/salt/states/ssh/init.sls index c6956c0..4e99484 100644 --- a/salt/states/ssh/init.sls +++ b/salt/states/ssh/init.sls @@ -1,3 +1,12 @@ +Install sshd: + pkg.installed: + - name: openssh-server + +start sshd: + service.running: + - name: sshd + - enable: True + {% if pillar['ssh']['user-pub-keys'] %} {{ pillar['username'] }}_autherized_keys: ssh_auth: