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.

30 satır
652B

  1. # nginx.ng.install
  2. #
  3. # Manages installation of nginx.
  4. {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}
  5. nginx_install:
  6. {% if nginx.install_from_source %}
  7. ## add source compilation here
  8. {% else %}
  9. pkg.installed:
  10. {{ sls_block(nginx.package.opts) }}
  11. - name: {{ nginx.lookup.package }}
  12. {% endif %}
  13. {% if salt['grains.get']('os_family') == 'Debian' %}
  14. nginx_ppa_repo:
  15. pkgrepo:
  16. {%- if nginx.install_from_ppa %}
  17. - managed
  18. {%- else %}
  19. - absent
  20. {%- endif %}
  21. - ppa: nginx/{{ nginx.ppa_version }}
  22. - require_in:
  23. - pkg: nginx_install
  24. - watch_in:
  25. - pkg: nginx_install
  26. {% endif %}