diff --git a/nginx/common.sls b/nginx/common.sls index b98dc64..9e1b7a3 100644 --- a/nginx/common.sls +++ b/nginx/common.sls @@ -22,6 +22,7 @@ - source: salt://nginx/templates/config.jinja - require: - file: /etc/nginx + - pkg: nginx {% for dir in ('sites-enabled', 'sites-available') %} /etc/nginx/{{ dir }}: diff --git a/nginx/package.sls b/nginx/package.sls index cc5708a..a76d260 100644 --- a/nginx/package.sls +++ b/nginx/package.sls @@ -114,4 +114,5 @@ nginx: /etc/init.d/nginx: file.symlink: - target: /lib/init/upstart-job + - force: True {% endif %}