- From: DV <
>
- To:
- Subject: [chef] Re: Re: How to configure opscode nginx properly
- Date: Sun, 20 Apr 2014 22:28:54 -0700
Try adding cookbook "nginx" to this template definition:
https://github.com/st-h/wrapper-nginx/blob/master/definitions/definition.rb#L23
You can see the template's "cookbook" attribute description here:
http://docs.opscode.com/resource_template.html#attributes
On Sat, Apr 19, 2014 at 11:25 AM, Steve Hummingbird
<
>
wrote:
>
Hmm, I am not really sure where and why I should add “chef-server”. But
>
after all my desperate attempts I have commited a wrapper cookbook for
>
nginx to github: https://github.com/st-h/wrapper-nginx
>
It’s designed after an example I had gotten from #chef irc yesterday. It
>
initially appeared to work fine, but after I had set the [‘nginx’][‘dir’]
>
to a custom location everything seems to fall apart again. The nginx
>
cookbook always installs the default config, even if it has been told to
>
not do so. This has really started to get frustrating. :( So, any help is
>
really appreciated…
>
>
>
>
On 19 Apr 2014, at 02:15, DV
>
<
>
>
wrote:
>
>
> Are you specifying "cookbook" property in your cookbook's template
>
> definition? Try specifying cookbook "chef-server" and see what
>
> happens.
>
>
>
> On Wed, Apr 16, 2014 at 10:40 AM, Steve Hummingbird
>
> <
>
>
> wrote:
>
>> I have been running into some issues when configuring nginx using the
>
>> opscode cookbook.
>
>> I have created a wrapper cookbook, which replaces the default config by
>
>> putting my config into /etc/nginx/sites-available/default
>
>> However, the opscode cookbook always replaces that config with the
>
>> default sample config. So, on every chef run the nginx cookbook notices
>
>> that the default config is no longer there and replaces my config, then
>
>> my wrapper cookbook notices that the config is not correct and replaces
>
>> that file with my config again.
>
>> I was having the same issues when installing from source as well as using
>
>> the ubuntu package installation.
>
>> So, in the end I am getting the feeling that I might be missing something
>
>> fundamentally or a lot of other people must have been running into the
>
>> same issue. How do I configure nginx the right way using the opscode
>
>> cookbook?
>
>>
>
>> Thanks,
>
>> Steve
>
>>
>
>
>
>
>
>
>
> --
>
> Best regards, Dmitriy V.
>
--
Best regards, Dmitriy V.
Archive powered by MHonArc 2.6.16.