From c7a97ae72fed60c3ab45f4e18ce34e1a24f78fd7 Mon Sep 17 00:00:00 2001 From: Andres Montalban Date: Fri, 28 Jul 2017 10:17:16 -0300 Subject: [PATCH] Create needed directory for UsePrivilegeSeparation option --- openssh/config.sls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openssh/config.sls b/openssh/config.sls index 1a4501e..1a9efef 100644 --- a/openssh/config.sls +++ b/openssh/config.sls @@ -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 %}