diff --git a/README.rst b/README.rst index f9e4447..6a71ea0 100644 --- a/README.rst +++ b/README.rst @@ -80,6 +80,12 @@ Installs and enables the mod_php5 module Installs and enables the mod_fcgid module +``apache.mod_dav_svn`` +-------------------- + +Installs and enables the mod_dav_svn module (Debian only) + + ``apache.mod_vhost_alias`` ---------------------- 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 %}