Explorar el Código

Added optional ability to NOT start nginx after compiling and installing

susefix
Ross Perkins hace 10 años
padre
commit
3a158a278c
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. +6
    -0
      nginx/source.sls

+ 6
- 0
nginx/source.sls Ver fichero

@@ -25,6 +25,7 @@
{% set make_flags = nginx.get('make_flags', nginx_map['make_flags']) -%}

{% 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_source = source + "/nginx-" + version -%}
@@ -224,9 +225,14 @@ nginx:
sbin_dir: {{ sbin_dir }}
pid_path: {{ pid_path }}
service:
{% if service_enable %}
- running
- enable: True
- restart: True
{% else %}
- dead
- enable: False
{% endif %}
- name: {{ service_name }}
- watch:
- cmd: nginx

Cargando…
Cancelar
Guardar