Create needed directory for UsePrivilegeSeparation option

This commit is contained in:
Andres Montalban 2017-07-28 10:17:16 -03:00
parent 1a65c5996e
commit c7a97ae72f

View File

@ -85,3 +85,12 @@ ssh_host_{{ keyType }}_key.pub:
- service: {{ openssh.service }} - service: {{ openssh.service }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{%- if salt['pillar.get']('sshd_config:UsePrivilegeSeparation', '')|lower == 'yes' %}
/var/run/sshd:
file.directory:
- user: root
- mode: 755
- watch_in:
- service: {{ openssh.service }}
{% endif %}