nginx-formula/nginx/init.sls
Imran Iqbal 46dff1596a fix: prevent running of states deprecated in v1.0.0
* Route all to `nginx/deprecated.sls`
2019-05-13 13:06:04 +01:00

34 lines
657 B
Plaintext

# nginx
#
# Meta-state to fully install nginx.
{%- from 'nginx/map.jinja' import nginx, sls_block with context %}
include:
{%- if nginx.ng is defined %}
- nginx.deprecated
{%- endif %}
- nginx.config
- nginx.service
{%- if nginx.snippets is defined %}
- nginx.snippets
{%- endif %}
- nginx.servers
- nginx.certificates
extend:
nginx_service:
service:
- listen:
- file: nginx_config
- require:
- file: nginx_config
nginx_config:
file:
- require:
{%- if nginx.install_from_source %}
- cmd: nginx_install
{%- else %}
- pkg: nginx_install
{%- endif %}