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.

123456789101112131415161718192021222324252627282930
  1. # nginx
  2. #
  3. # Meta-state to fully install nginx.
  4. {% from 'nginx/map.jinja' import nginx, sls_block with context %}
  5. include:
  6. - nginx.config
  7. - nginx.service
  8. {% if nginx.snippets is defined %}
  9. - nginx.snippets
  10. {% endif %}
  11. - nginx.servers
  12. - nginx.certificates
  13. extend:
  14. nginx_service:
  15. service:
  16. - listen:
  17. - file: nginx_config
  18. - require:
  19. - file: nginx_config
  20. nginx_config:
  21. file:
  22. - require:
  23. {% if nginx.install_from_source %}
  24. - cmd: nginx_install
  25. {% else %}
  26. - pkg: nginx_install
  27. {% endif %}