- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Apache2 cookbook on CentOS?
- Date: Tue, 11 Oct 2011 15:54:24 -0700
Yep, that should work.
ADam
On Tue, Oct 11, 2011 at 2:44 PM, Brad Knowles
<
>
wrote:
>
On Oct 11, 2011, at 4:28 PM, Ranjib Dey wrote:
>
>
> model the site specific configs as a template and drop it inside
>
> node[:apache][:dir]}/sites-available/default, and then use the apache_site
>
> definition to enable this site specific config.
>
>
>
> Look ate the last lines of the default recipe inside apache cookbook, the
>
> way default site is enabled (the [template
>
> "#{node[:apache][:dir]}/sites-available/default" ] directive and the
>
> [apache_site "default"] directive)
>
>
I'm actually thinking that I want to use the web_app definition instead and
>
let it call apache_site with the appropriate parameters.
>
>
As I understand it, I can tell web_app what template file I want to use, as
>
well as the server name and the docroot, and have it do the rest of the
>
work for me. Then all I should have to do is to create the appropriate
>
template file that gets put into cookbooks/apache2/templates/default next
>
to web_app.conf.erb, with all the other definitions that I want like the
>
SSL self-signed certificate file, the SSL key, etc....
>
>
At least, this is the solution that I'm going to try and see if I can get
>
it working.
>
>
--
>
Brad Knowles
>
<
>
>
SAGE Level IV, Chef Level 0.0.1
>
>
--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E:
Archive powered by MHonArc 2.6.16.