[chef] Re: Re: Re: Re: Re: Converging Attributes before first chef-client run


Chronological Thread 
  • From: Jonathan Matthews < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Converging Attributes before first chef-client run
  • Date: Sun, 26 Dec 2010 10:51:37 +0000

On 26 December 2010 03:05, Daniel DeLeo 
< >
 wrote:
> `knife exec` gives you everything that's available in the "main mode"
> of shef, minus commands that apply primarily to running recipes. We
> should definitely add some help to the manpage, but for the moment you
> can use the interactive help inside shef (e.g., `help :nodes`).
>
> You can probably achieve your goal of getting the attributes to be
> applied using something like this:
>
>  knife exec -E 'n = nodes.show("i-ec308f81"); n.expand!; n.save'

That's brilliant - a great (and fast!) one-liner to achieve almost
exactly what I need :-)

Poking at it for few minutes, I notice an interesting departure from
shef's "become_node; node.save" behaviour: the knife call doesn't
/remove/ attributes that've been deleted from included (in my case,
nested) roles.  Is this by design?

Jonathan
-- 
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html



Archive powered by MHonArc 2.6.16.

§