- From: <
>
- To:
- Subject: [chef-dev] Apache and Subversion cookbooks
- Date: Wed, 2 Jul 2014 07:45:08 -0700 (PDT)
Hi all,
I've got a question for you about apache and subversion cookbooks.
I've downloaded the subversion cookbook from 'opscode' site and I've added the
authorization;
here my steps:
1. templates/default/subversion.conf.erb
- add the AuthzSVNAccessFile property
2. recipes/server.rb
- create the authz file for authentication
- add authz_svn_module module (svn_authz.load file) for authorization
Now I need to load the authz_svn_module module in apache.
Unfortunately I cannot simply add the line:
apache_module 'authz_svn'
because apache server loads all modules in alphabetical order (authz_svn
module
requires the dav_svn), so I've added these lines:
apache_module "svn_authz" do
filename "mod_authz_svn.so"
identifier "authz_svn_module"
end
these lines create the svn_authz.load file instead of authz_svn.load file
within the same contents:
LoadModule authz_svn_module /usr/lib64/httpd/modules/mod_authz_svn.so
and load it module after dav_svn.
It ok, it works!
But there are some apache cookbook versions (i.e. 1.1.2) where the attribute
"identifier" is missing in the apache_module.rb file and so I've got:
LoadModule svn_authz_module /usr/lib64/httpd/modules/mod_authz_svn.so
and the svn_authz_module doesn't exist.
Now, I ask you if it's good to update the apache cookbook or create a new
custom apache_module.rb file only for authz_svn_module.
Thank you in advance,
pasquy73
- [chef-dev] Apache and Subversion cookbooks, pasquale.vitale, 07/02/2014
Archive powered by MHonArc 2.6.16.