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.

34 lines
1.0KB

  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']=="FreeBSD" %}
  8. include:
  9. - {{ sls_service_running }}
  10. - {{ sls_package_install }}
  11. apache-config-modules-suexec-file-managed:
  12. file.managed:
  13. - name: {{ apache.modulesdir }}/040_mod_suexec.conf
  14. - source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_suexec.conf.jinja
  15. - mode: 644
  16. - makedirs: True
  17. - template: {{ apache.get('template_engine', 'jinja') }}
  18. - context:
  19. svcname: {{ apache.service.name }}
  20. - require:
  21. - pkg: apache-package-install-pkg-installed
  22. - watch_in:
  23. - module: apache-service-running-restart
  24. - require_in:
  25. - module: apache-service-running-restart
  26. - module: apache-service-running-reload
  27. - service: apache-service-running
  28. {%- endif %}