[chef] Re: How/can I update a node's attributes via knife WITHOUT bootstrapping


Chronological Thread 
  • From: Sebastian Garcia < >
  • To:
  • Subject: [chef] Re: How/can I update a node's attributes via knife WITHOUT bootstrapping
  • Date: Fri, 8 May 2015 15:00:51 -0400

How about a recipe and setting the attribute as 'normal'? Would that work for you?

Sebastian Garcia

System Network Engineer
Smart Trade Technologies
420 Lexington Ave. Ste. 2800-02
New York, NY 10170
212-867-4567 x90
http://www.smart-trade.net


On Fri, May 8, 2015 at 2:47 PM, Fouts, Chris < " target="_blank"> > wrote:

I’m aware of the -j option to set node attributes during bootstrap. I’m also aware of knife edit, which is needs user input form an editor. This is NOT what I’m talking about

 

If a node is already bootstrapped, how can I set some of its attributes without re-bootstrapping it, and not using knife edit. I know I can do the following in a script since I want to do this automagically.

-        Knife ode show –Fj > node.json

-        Edit the node.json file

-        Knife node from file node.json

Is there a more elegant way?





Archive powered by MHonArc 2.6.16.

§