nginx-formula/nginx/ng/init.sls
George Robinson f24b066c43 Build from source with nginx.ng
Build NGINX from source with nginx.ng state with support for passing
compile time flags necessary for installing modules such as more headers
by the openresty project.
2016-05-09 16:39:24 +01:00

28 lines
529 B
Plaintext

# nginx.ng
#
# Meta-state to fully install nginx.
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
include:
- nginx.ng.config
- nginx.ng.service
- nginx.ng.vhosts
- nginx.ng.certificates
extend:
nginx_service:
service:
- watch:
- file: nginx_config
- require:
- file: nginx_config
nginx_config:
file:
- require:
{% if nginx.install_from_source %}
- cmd: nginx_install
{% else %}
- pkg: nginx_install
{% endif %}