31 lines
604 B
Plaintext
Raw Normal View History

2014-05-15 18:06:48 -04:00
# nginx.ng
#
# Meta-state to fully install nginx.
{% 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 %}
- 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:
- 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:
{% if nginx.install_from_source %}
- cmd: nginx_install
{% else %}
2014-06-19 11:25:40 -04:00
- pkg: nginx_install
{% endif %}