Mercurial > repos > other > Puppet
view modules/apache/manifests/mod/dav_svn.pp @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | 675c1cc61eaf |
children | b8d6ada284dd |
line wrap: on
line source
# @summary # Installs and configures `mod_dav_svn`. # # @param authz_svn_enabled # Specifies whether to install Apache mod_authz_svn # # @see https://httpd.apache.org/docs/current/mod/mod_dav_svn.html for additional documentation. # class apache::mod::dav_svn ( $authz_svn_enabled = false, ) { Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn'] include ::apache include ::apache::mod::dav if($::operatingsystem == 'SLES' and $::operatingsystemmajrelease < '12'){ package { 'subversion-server': ensure => 'installed', provider => 'zypper', } } ::apache::mod { 'dav_svn': } if $::osfamily == 'Debian' and ! ($::operatingsystemmajrelease in ['6', '9', '16.04', '18.04']) { $loadfile_name = undef } else { $loadfile_name = 'dav_svn_authz_svn.load' } if $authz_svn_enabled { ::apache::mod { 'authz_svn': loadfile_name => $loadfile_name, require => Apache::Mod['dav_svn'], } } }