Searching for nodes by attributes

knife search node "tags:app AND tag2:value1 AND (tag3:v4 OR tag3:v5 OR tag3:v6)"

Setting a local attribute to a new value

knife exec -E "nodes.find('tags:app AND tag2:value') { |n| puts n.name; n.set[:app][:attribute] = 'new_vale'; n.save  }"
comments powered by Disqus