Force symlink creation of /etc/init.d/nginxsusefix
- source: salt://nginx/templates/config.jinja | - source: salt://nginx/templates/config.jinja | ||||
- require: | - require: | ||||
- file: /etc/nginx | - file: /etc/nginx | ||||
- pkg: nginx | |||||
{% for dir in ('sites-enabled', 'sites-available') %} | {% for dir in ('sites-enabled', 'sites-available') %} | ||||
/etc/nginx/{{ dir }}: | /etc/nginx/{{ dir }}: |
/etc/init.d/nginx: | /etc/init.d/nginx: | ||||
file.symlink: | file.symlink: | ||||
- target: /lib/init/upstart-job | - target: /lib/init/upstart-job | ||||
- force: True | |||||
{% endif %} | {% endif %} |