Skip to content

Commit

Permalink
Merge pull request #750 from Arakmar/dav_svn
Browse files Browse the repository at this point in the history
Add package parameters to the dav_svn mod.
  • Loading branch information
hunner committed Jun 30, 2014
2 parents 18fc65b + 4849904 commit 1449585
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion manifests/mod/dav_svn.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

if $authz_svn_enabled {
::apache::mod { 'authz_svn':
loadfile_name => 'dav_svn_authz_svn.load',
loadfile_name => $::osfamily ? {
'Debian' => undef,
default => 'dav_svn_authz_svn.load',
},
require => Apache::Mod['dav_svn'],
}
}
Expand Down
17 changes: 10 additions & 7 deletions spec/acceptance/mod_dav_svn_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
describe 'apache::mod::dav_svn class' do
case fact('osfamily')
when 'Debian'
mod_dir = '/etc/apache2/mods-available'
service_name = 'apache2'
mod_dir = '/etc/apache2/mods-available'
service_name = 'apache2'
authz_svn_load_file = 'authz_svn.load'
when 'RedHat'
mod_dir = '/etc/httpd/conf.d'
service_name = 'httpd'
mod_dir = '/etc/httpd/conf.d'
service_name = 'httpd'
authz_svn_load_file = 'dav_svn_authz_svn.load'
when 'FreeBSD'
mod_dir = '/usr/local/etc/apache22/Modules'
service_name = 'apache22'
mod_dir = '/usr/local/etc/apache22/Modules'
service_name = 'apache22'
authz_svn_load_file = 'dav_svn_authz_svn.load'
end

context "default dav_svn config" do
Expand Down Expand Up @@ -48,7 +51,7 @@ class { 'apache::mod::dav_svn':
it { is_expected.to be_running }
end

describe file("#{mod_dir}/dav_svn_authz_svn.load") do
describe file("#{mod_dir}/#{authz_svn_load_file}") do
it { is_expected.to contain "LoadModule authz_svn_module" }
end
end
Expand Down

0 comments on commit 1449585

Please sign in to comment.