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.

37 lines
727B

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