Saltstack Official Apache 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.

преди 11 години
123456789101112131415161718
  1. {% set pkg = salt['grains.filter_by']({
  2. 'Debian': {'name': 'libapache2-mod-wsgi'},
  3. 'RedHat': {'name': 'mod_wsgi'},
  4. }) %}
  5. mod_wsgi:
  6. pkg:
  7. - installed
  8. - name: {{ pkg.name }}
  9. {% if grains.get('os_family') == 'RedHat' %}
  10. /etc/httpd/conf.d/wsgi.conf:
  11. file:
  12. - uncomment
  13. - regex: LoadModule
  14. - require:
  15. - pkg: mod_wsgi
  16. {% endif %}