tlu/salt/states/ssh/init.sls

8 lines
207 B
Plaintext
Raw Normal View History

2021-10-12 08:15:14 +00:00
{% if pillar['ssh']['user-pub-keys'] %}
{{ pillar['username'] }}_autherized_keys:
ssh_auth:
- present
- user: {{ pillar['username'] }}
- names: {{ pillar['ssh']['user-pub-keys'] }}
{% endif %}