2014-05-15 18:06:48 -04:00
|
|
|
# nginx.ng
|
|
|
|
#
|
|
|
|
# Meta-state to fully install nginx.
|
|
|
|
|
2016-05-09 16:31:29 +01:00
|
|
|
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
|
|
|
|
|
2014-05-15 18:06:48 -04:00
|
|
|
include:
|
|
|
|
- nginx.ng.config
|
|
|
|
- nginx.ng.service
|
2017-08-30 00:26:31 +02:00
|
|
|
{% if nginx.snippets is defined %}
|
|
|
|
- nginx.ng.snippets
|
|
|
|
{% endif %}
|
2016-10-19 16:35:38 -05:00
|
|
|
- nginx.ng.servers
|
2015-06-23 15:17:52 -04:00
|
|
|
- nginx.ng.certificates
|
2014-05-15 18:06:48 -04:00
|
|
|
|
|
|
|
extend:
|
|
|
|
nginx_service:
|
|
|
|
service:
|
2016-10-29 09:34:28 +02:00
|
|
|
- listen:
|
2014-05-15 18:06:48 -04:00
|
|
|
- file: nginx_config
|
2014-05-21 00:50:50 -04:00
|
|
|
- require:
|
|
|
|
- file: nginx_config
|
2014-06-19 11:21:39 -04:00
|
|
|
nginx_config:
|
|
|
|
file:
|
|
|
|
- require:
|
2016-05-09 16:31:29 +01:00
|
|
|
{% if nginx.install_from_source %}
|
|
|
|
- cmd: nginx_install
|
|
|
|
{% else %}
|
2014-06-19 11:25:40 -04:00
|
|
|
- pkg: nginx_install
|
2016-05-09 16:31:29 +01:00
|
|
|
{% endif %}
|