Saltstack Official Nginx Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233
  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. - nginx.servers
  15. - nginx.certificates
  16. extend:
  17. nginx_service:
  18. service:
  19. - listen:
  20. - file: nginx_config
  21. - require:
  22. - file: nginx_config
  23. nginx_config:
  24. file:
  25. - require:
  26. {%- if nginx.install_from_source %}
  27. - cmd: nginx_install
  28. {%- else %}
  29. - pkg: nginx_install
  30. {%- endif %}