Saltstack Official Nginx Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
604B

  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. {% if nginx.snippets is defined %}
  9. - nginx.ng.snippets
  10. {% endif %}
  11. - nginx.ng.servers
  12. - nginx.ng.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 %}