nginx-formula/nginx/init.sls

18 lines
465 B
Plaintext
Raw Normal View History

include:
- nginx.common
2014-10-20 10:59:16 +02:00
# Only upstart OR sysvinit should default to true.
{% if pillar.get('nginx', {}).get('use_upstart', true) %}
- nginx.upstart
2014-10-20 10:59:16 +02:00
{% elif pillar.get('nginx', {}).get('use_sysvinit', false) %}
- nginx.sysvinit
{% endif %}
{% if pillar.get('nginx', {}).get('user_auth_enabled', true) %}
- nginx.users
{% endif %}
{% if pillar.get('nginx', {}).get('install_from_source', false) %}
2013-08-21 21:17:15 +02:00
- nginx.source
{% else %}
- nginx.package
2013-08-21 21:17:15 +02:00
{% endif -%}