Saltstack Official Apache Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

50 Zeilen
1.4KB

  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'] == "Debian" %}
  8. include:
  9. - {{ sls_service_running }}
  10. - {{ sls_package_install }}
  11. apache-config-modules-dav_svn_pkg_installed:
  12. pkg.installed:
  13. - name: libapache2-mod-svn
  14. apache-config-modules-dav_svn_cmd-run-a2en:
  15. cmd.run:
  16. - name: a2enmod dav_svn
  17. - unless: ls {{ apache.moddir }}/dav_svn.load
  18. - order: 255
  19. - require:
  20. - pkg: apache-package-install-pkg-installed
  21. - pkg: apache-config-modules-dav_svn_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. apache-config-modules-dav_svn_cmd-run-a2en-authz:
  29. cmd.run:
  30. - name: a2enmod authz_svn
  31. - unless: ls {{ apache.moddir }}/authz_svn.load
  32. - order: 255
  33. - require:
  34. - pkg: apache-package-install-pkg-installed
  35. - pkg: apache-config-modules-dav_svn_pkg_installed
  36. - watch_in:
  37. - module: apache-service-running-restart
  38. - require_in:
  39. - module: apache-service-running-restart
  40. - module: apache-service-running-reload
  41. - service: apache-service-running
  42. {%- endif %}