Put ssh keys on configured path in sshd_config (AuthorizedKeysFile)

Signed-off-by: POTIER Mathieu <mathieu.potier@onzeway.eu>
This commit is contained in:
POTIER Mathieu
2015-11-17 11:09:37 +01:00
parent 67e500fb11
commit dda1fb5128
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -38,12 +38,14 @@ include:
{{ print_name(identifier, key) }}:
ssh_auth.present:
{{ print_ssh_auth(identifier, key) }}
- config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}
- require:
- service: {{ openssh.service }}
{%- else %}
{{ print_name(identifier, key) }}:
ssh_auth.absent:
{{ print_ssh_auth(identifier, key) }}
- config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{%- endfor -%}