2014-05-16 00:06:48 +02:00
|
|
|
# nginx.ng.install
|
|
|
|
#
|
|
|
|
# Manages installation of nginx.
|
2014-05-19 19:22:51 +02:00
|
|
|
|
2014-05-16 00:06:48 +02:00
|
|
|
{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
|
|
|
|
|
|
|
|
nginx_install:
|
|
|
|
{% if nginx.from_source %}
|
|
|
|
## add source compilation here
|
|
|
|
{% else %}
|
|
|
|
pkg.installed:
|
|
|
|
{{ sls_block(nginx.package.opts) }}
|
|
|
|
- name: {{ nginx.lookup.package }}
|
|
|
|
{% endif %}
|