This commit is contained in:
Kent Shultz 2014-05-30 10:17:53 -07:00
commit ed0879a42c
3 changed files with 6 additions and 14 deletions

View File

@ -8,7 +8,7 @@ Install nginx either by source or by package.
See the full `Salt Formulas installation and usage instructions See the full `Salt Formulas installation and usage instructions
<http://docs.saltstack.com/topics/conventions/formulas.html>`_. <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
Available states Available states
================ ================

View File

@ -1,4 +1,4 @@
# nginx.ng.install # nginx.ng.config
# #
# Manages the main nginx server configuration file. # Manages the main nginx server configuration file.

View File

@ -1,6 +1,3 @@
include:
- nginx.common
{% set nginx = pillar.get('nginx', {}) -%} {% set nginx = pillar.get('nginx', {}) -%}
{% set version = nginx.get('version', '1.5.2') -%} {% set version = nginx.get('version', '1.5.2') -%}
{% set checksum = nginx.get('checksum', 'sha1=3546be28a72251f8823ab6be6a1180d300d06f76') -%} {% set checksum = nginx.get('checksum', 'sha1=3546be28a72251f8823ab6be6a1180d300d06f76') -%}
@ -11,13 +8,12 @@ include:
{% set nginx_home = home + "/nginx-" + version -%} {% set nginx_home = home + "/nginx-" + version -%}
{% set nginx_modules_dir = source + "/nginx-modules" -%} {% set nginx_modules_dir = source + "/nginx-modules" -%}
{% if nginx['with_luajit'] -%}
include: include:
- nginx.common
{% if nginx['with_luajit'] %}
- nginx.luajit2 - nginx.luajit2
{% endif -%} {% endif -%}
{% if nginx['with_openresty'] %}
{% if nginx['with_openresty'] -%}
include:
- nginx.openresty - nginx.openresty
{% endif -%} {% endif -%}
@ -76,13 +72,9 @@ get-nginx-{{name}}:
- watch: - watch:
- file: get-nginx - file: get-nginx
- require_in: - require_in:
- cmd: make-nginx - cmd: nginx
{% endfor -%} {% endfor -%}
{% if install_luajit -%}
{% endif -%}
get-ngx_devel_kit: get-ngx_devel_kit:
file.managed: file.managed:
- name: {{ source }}/ngx_devel_kit.tar.gz - name: {{ source }}/ngx_devel_kit.tar.gz