From 874719e49e44a0d7be4c50e35549e1a26f864e10 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Mon, 9 May 2016 17:59:55 +0100 Subject: [PATCH] Fix absent /var/log/nginx --- nginx/ng/config.sls | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/ng/config.sls b/nginx/ng/config.sls index fc3520a..8928ead 100644 --- a/nginx/ng/config.sls +++ b/nginx/ng/config.sls @@ -4,6 +4,11 @@ {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} +{% if nginx.install_from_source %} +/var/log/nginx: + file.directory +{% endif %} + nginx_config: file.managed: {{ sls_block(nginx.server.opts) }}