f24b066c43
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.
28 lines
529 B
Plaintext
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 %}
|