Saltstack Official Nginx Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 satır
557B

  1. # nginx.ng.service
  2. #
  3. # Manages the nginx service.
  4. {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
  5. {% set service_function = {True:'running', False:'dead'}.get(nginx.service.enable) %}
  6. include:
  7. - nginx.ng.install
  8. nginx_service:
  9. service.{{ service_function }}:
  10. {{ sls_block(nginx.service.opts) }}
  11. - name: {{ nginx.lookup.service }}
  12. - enable: {{ nginx.service.enable }}
  13. - require:
  14. - sls: nginx.ng.install
  15. - watch:
  16. {% if not nginx.install_from_source %}
  17. - pkg: nginx_install
  18. {% endif %}