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

28 行
531B

  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. - listen:
  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 %}