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.

31 satır
912B

  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-actions-cmd-run:
  12. cmd.run:
  13. - name: a2enmod actions
  14. - unless:
  15. - ls {{ apache.moddir }}/actions.load || egrep "^APACHE_MODULES=" /etc/sysconfig/apache2 | grep actions
  16. - order: 255
  17. - require:
  18. - pkg: apache-package-install-pkg-installed
  19. - watch_in:
  20. - module: apache-service-running-restart
  21. - require_in:
  22. - module: apache-service-running-restart
  23. - module: apache-service-running-reload
  24. - service: apache-service-running
  25. {%- endif %}