[chef] Re: Re: Re: Re: reconfiguring server vs continuous upgrades


Chronological Thread 
  • From: Torben Knerr < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: reconfiguring server vs continuous upgrades
  • Date: Fri, 12 Apr 2013 23:35:53 +0200


On Fri, Apr 12, 2013 at 9:46 PM, Geoff Papilion < " target="_blank"> > wrote:
My personal preference is to avoid node attributes for everything
unless they are populated by ohai. Because I don't feel like its
automated if I have to type  "knife node edit" to have a fully working
node.


You could also store the node attributes in a json file, e.g. initially via `knife node show <nodename> -Fjson > nodes/<nodename>.json` and keep this under version control. Now whenever you change node attributes, you modify the local json file, then use `knife node from file nodes/<nodename>.json` to bulk update the node attributes in an automation-friendly way.

IMHO `knife node edit` is dangerous and should be avoided if you want "infrastructure-as-code"

-Torben
 



Archive powered by MHonArc 2.6.16.

§