Browse Source

Group source.sls include declarations into one

tags/v0.55.0
Ahmad Sherif 10 years ago
parent
commit
c28cac3483
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      nginx/source.sls

+ 3
- 7
nginx/source.sls View File

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') -%}
{% 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'] -%}
include:
{% if nginx['with_openresty'] %}
- nginx.openresty - nginx.openresty
{% endif -%} {% endif -%}



Loading…
Cancel
Save