[chef] Re: Query for knife exec


Chronological Thread 
  • From: Seth Falcon < >
  • To: "< >" < >
  • Subject: [chef] Re: Query for knife exec
  • Date: Thu, 14 Feb 2013 21:49:34 +0000
  • Accept-language: en-US


On Feb 14, 2013, at 12:28 PM, mayank verma wrote:

> Hello folks,
> 
> Able to do this:
> -knife exec -E "nodes.all {|n| puts n}"   //SHOW 
> 
> Notable to do this:
> -knife exec -E "data_bag_item('build', 'var') {|n| puts n}"
> -knife exec -E "data_bag_item('build', 'var').all {|n| puts n}"  // ERROR 
> -knife exec -E "data_bag('build'). {|n| puts n}"
> -knife exec -E "data_bag('build').all {|n| puts n}"                 // ERROR
> 
> any reason?
> 
> How can i list data bag content by knife exec.

pp api.get("data")
pp api.get("data/fruit")
pp api.get("data/fruit/citrus")





Archive powered by MHonArc 2.6.16.

§