2019-05-10 23:07:18 +02:00
|
|
|
# nginx
|
|
|
|
#
|
|
|
|
# Meta-state to fully install nginx.
|
|
|
|
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- from 'nginx/map.jinja' import nginx, sls_block with context %}
|
2014-10-31 17:22:16 +01:00
|
|
|
|
2013-08-21 21:01:51 +02:00
|
|
|
include:
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- if nginx.ng is defined %}
|
|
|
|
- nginx.deprecated
|
|
|
|
{%- endif %}
|
2019-05-10 23:07:18 +02:00
|
|
|
- nginx.config
|
|
|
|
- nginx.service
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- if nginx.snippets is defined %}
|
2019-05-10 23:07:18 +02:00
|
|
|
- nginx.snippets
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- endif %}
|
2019-05-10 23:07:18 +02:00
|
|
|
- nginx.servers
|
|
|
|
- nginx.certificates
|
2013-08-21 21:01:51 +02:00
|
|
|
|
2019-05-10 23:07:18 +02:00
|
|
|
extend:
|
|
|
|
nginx_service:
|
|
|
|
service:
|
|
|
|
- listen:
|
|
|
|
- file: nginx_config
|
|
|
|
- require:
|
|
|
|
- file: nginx_config
|
|
|
|
nginx_config:
|
|
|
|
file:
|
|
|
|
- require:
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- if nginx.install_from_source %}
|
2019-05-10 23:07:18 +02:00
|
|
|
- cmd: nginx_install
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- else %}
|
2019-05-10 23:07:18 +02:00
|
|
|
- pkg: nginx_install
|
2019-05-13 06:30:09 +02:00
|
|
|
{%- endif %}
|