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: