Merge pull request #105 from Perceptyx/master

Create needed directory for UsePrivilegeSeparation option
This commit is contained in:
alxwr 2017-07-31 22:57:41 +02:00 committed by GitHub
commit 7cd1faac84
1 changed files with 9 additions and 0 deletions

View File

@ -85,3 +85,12 @@ ssh_host_{{ keyType }}_key.pub:
- service: {{ openssh.service }}
{%- endif %}
{%- 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 %}