From 8ca121bed2df7b68548a32724aa06ba330a879fe Mon Sep 17 00:00:00 2001 From: "a.genus" Date: Wed, 23 Dec 2015 17:02:24 +0300 Subject: [PATCH] Add mod_dav_svn --- apache/mod_dav_svn.sls | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apache/mod_dav_svn.sls diff --git a/apache/mod_dav_svn.sls b/apache/mod_dav_svn.sls new file mode 100644 index 0000000..cf29fee --- /dev/null +++ b/apache/mod_dav_svn.sls @@ -0,0 +1,30 @@ +{% if grains['os_family'] == "Debian" %} + +include: + - apache + +libapache2-mod-svn: + pkg.installed: [] + + +a2enmod dav_svn: + cmd.run: + - unless: ls /etc/apache2/mods-enabled/dav_svn.load + - order: 255 + - require: + - pkg: apache + - pkg: libapache2-mod-svn + - watch_in: + - module: apache-restart + +a2enmod authz_svn: + cmd.run: + - unless: ls /etc/apache2/mods-enabled/authz_svn.load + - order: 255 + - require: + - pkg: apache + - pkg: libapache2-mod-svn + - watch_in: + - module: apache-restart + +{% endif %}