Browse Source

Added optional ability to NOT start nginx after compiling and installing

tags/v0.55.0
Ross Perkins 10 years ago
parent
commit
3a158a278c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      nginx/source.sls

+ 6
- 0
nginx/source.sls View File

{% set make_flags = nginx.get('make_flags', nginx_map['make_flags']) -%} {% set make_flags = nginx.get('make_flags', nginx_map['make_flags']) -%}


{% set service_name = nginx.get('service_name', 'nginx') %} {% set service_name = nginx.get('service_name', 'nginx') %}
{% set service_enable = nginx.get('service_enable', True) %}


{% set nginx_package = source + '/nginx-' + version + '.tar.gz' -%} {% set nginx_package = source + '/nginx-' + version + '.tar.gz' -%}
{% set nginx_source = source + "/nginx-" + version -%} {% set nginx_source = source + "/nginx-" + version -%}
sbin_dir: {{ sbin_dir }} sbin_dir: {{ sbin_dir }}
pid_path: {{ pid_path }} pid_path: {{ pid_path }}
service: service:
{% if service_enable %}
- running - running
- enable: True - enable: True
- restart: True - restart: True
{% else %}
- dead
- enable: False
{% endif %}
- name: {{ service_name }} - name: {{ service_name }}
- watch: - watch:
- cmd: nginx - cmd: nginx

Loading…
Cancel
Save