[chef] Re: Re: Re: Re: Re: Examples for newbies


Chronological Thread 
  • From: "John E. Vincent (lusis)" < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Examples for newbies
  • Date: Wed, 22 Jun 2011 10:47:04 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=nWX/TpbN4tpWxe133l/anklJJD3BtlS3ct4nuTphgw2hY+F9nwnHrTqcG+PGK9zE5P RKYckAk1HKHUM3IXJWltIvrncUlhxf8uDIfZemiPo73Iy8Aen+RUnDUcHXSXXILTe+p+ T5XnW0Qr3+Sr4U9/88tKm1nWZ2apDyH58A/EU=

So here we go. I'm going to use the official NTP cookbook. If you look
at the attributes here:

https://github.com/opscode/cookbooks/blob/master/ntp/attributes/default.rb

You'll see what default NTP servers are applied in this template here:

https://github.com/opscode/cookbooks/blob/master/ntp/templates/default/ntp.conf.erb#L15-17

If you want to override those per-environment (assuming you were on
chef 0.10.0), you would do something like this:

`knife environment create production`

with the following contents:

https://gist.github.com/2547bc4d572f7a1e046b

Now any node that's assign the "production" environment would get
those servers instead.

I may have fatfingered something in the JSON as I didn't actually push
the changes out to my servers.



On Wed, Jun 22, 2011 at 10:36 AM, ItsMikeE 
< >
 wrote:
> That would be most helpful.
> I assume that there are no similar examples documented online.
>
> Surely the take-up of chef would be helped by better basic documentation.
> Is anyone writing a chef book?
>



Archive powered by MHonArc 2.6.16.

§