tlu/salt/states/ssh/init.sls

17 lines
334 B
Plaintext
Raw Permalink Normal View History

2021-10-18 06:05:10 +00:00
Install sshd:
pkg.installed:
- name: openssh-server
start sshd:
service.running:
- name: sshd
- enable: True
2021-11-23 10:50:34 +00:00
{% if pillar['ssh']['user_pub_keys'] %}
2021-10-12 08:15:14 +00:00
{{ pillar['username'] }}_autherized_keys:
ssh_auth:
- present
- user: {{ pillar['username'] }}
2021-11-23 10:50:34 +00:00
- names: {{ pillar['ssh']['user_pub_keys'] }}
2021-10-12 08:15:14 +00:00
{% endif %}