Skip to content

Commit

Permalink
Merge pull request #874 from mhaskel/dav_svn_deb6
Browse files Browse the repository at this point in the history
Fix dav_svn for debian 6
  • Loading branch information
hunner committed Sep 29, 2014
2 parents 350cc27 + 14f5b78 commit b20fb1c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
25 changes: 14 additions & 11 deletions manifests/mod/dav_svn.pp
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
class apache::mod::dav_svn (
$authz_svn_enabled = false,
) {
Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn']
include ::apache::mod::dav
::apache::mod { 'dav_svn': }
Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn']
include ::apache::mod::dav
::apache::mod { 'dav_svn': }

if $authz_svn_enabled {
::apache::mod { 'authz_svn':
loadfile_name => $::osfamily ? {
'Debian' => undef,
default => 'dav_svn_authz_svn.load',
},
require => Apache::Mod['dav_svn'],
}
if $::osfamily == 'Debian' and $::operatingsystemmajrelease != '6' {
$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'],
}
}
}
6 changes: 5 additions & 1 deletion spec/acceptance/mod_dav_svn_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
when 'Debian'
mod_dir = '/etc/apache2/mods-available'
service_name = 'apache2'
authz_svn_load_file = 'authz_svn.load'
if fact('operatingsystemmajrelease') == '6'
authz_svn_load_file = 'dav_svn_authz_svn.load'
else
authz_svn_load_file = 'authz_svn.load'
end
when 'RedHat'
mod_dir = '/etc/httpd/conf.d'
service_name = 'httpd'
Expand Down

0 comments on commit b20fb1c

Please sign in to comment.