What's wrong with "knife data bag show build var"?
Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
| (512) 731-2218
Twitter, IRC, GitHub: mattray
From: mayank verma
Sent: Thursday, February 14, 2013 2:28 PM To: Subject: [chef] Query for knife exec 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.
Regards Mayank Verma |
Archive powered by MHonArc 2.6.16.