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