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.

36 lines
1.1KB

  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-socache_shmcb-file-managed:
  12. file.managed:
  13. - name: {{ apache.modulesdir }}/009_mod_socache_shmcb.conf
  14. - source: salt://apache/files/{{ salt['grains.get']('os_family') }}/generic_module.conf.jinja
  15. - mode: 644
  16. - makedirs: True
  17. - template: {{ apache.get('template_engine', 'jinja') }}
  18. - context:
  19. apache: {{ apache|json }}
  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. - context:
  29. module_name: socache_shmcb
  30. {%- endif %}