[chef] set an attribute on a node from the command line?


Chronological Thread 
  • From: Tom Hodder < >
  • To:
  • Subject: [chef] set an attribute on a node from the command line?
  • Date: Sat, 15 Sep 2012 05:11:57 +0100

Hi,

is there a better way than this...

knife exec -E "nodes.find(:name => '$(hostname)') {|n|
n.set['someattribute'] = ['somevalue'] ; n.save }"


Cheers
Tom



Archive powered by MHonArc 2.6.16.

§