Saltstack Official Apache Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

32 lines
998B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {%- set tplroot = tpldir.split('/')[0] %}
  4. {%- set sls_service_running = tplroot ~ '.service.running' %}
  5. {%- set sls_package_install = tplroot ~ '.package.install' %}
  6. {%- from tplroot ~ "/map.jinja" import apache with context %}
  7. {%- if grains['os_family'] in ('Suse', 'Debian',) %}
  8. include:
  9. - {{ sls_service_running }}
  10. - {{ sls_package_install }}
  11. apache-config-modules-upload_progress-pkg:
  12. pkg.installed
  13. - name: {{ apache.mod_upload_progress }}
  14. cmd.run:
  15. - name: a2enmod upload_progress
  16. - unless: ls {{ apache.moddir }}/upload_progress.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep upload_progress
  17. - order: 255
  18. - require:
  19. - pkg: apache-config-modules-upload_progress-pkg
  20. - watch_in:
  21. - module: apache-service-running-restart
  22. - require_in:
  23. - module: apache-service-running-restart
  24. - module: apache-service-running-reload
  25. - service: apache-service-running
  26. {%- endif %}