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.

34 satır
657B

  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 %}