nginx-formula/nginx/ng/init.sls

28 lines
531 B
Plaintext
Raw Normal View History

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