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.

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