It actually is working. The fact that ‘knife node show test1’ returns something is proof of that. The search didn’t work because that query ‘test1’ doesn’t return anything. The basic syntax for these queries is ‘<attribute>:<value>’, such as ‘chef_environment:_default’, or ‘name:test1’. [0] As for the difference between client and node, that’s a very common doubt for who’s only just starting with Chef. Basically, a client is an entity that can talk to the Chef Server API — It could be a person with certs for querying the API like you’re doing when using knife, or it could be a node. A node is the actual thing you’re configuring — usually a physical server, a VM or your workstation. It has a run list, a set of attributes, etc, and it belongs to an environment. [1] The node needs a corresponding client in order to query the Chef Server so that it knows what to do. The documentation over at http://docs.opscode.com is quite good, be sure to read through as much as you can. [0] http://docs.opscode.com/knife_search.html [1] http://docs.opscode.com/chef_overview_nodes.html Cheers, -- Cassiano Lealhttp://cassianoleal.com http://twitter.com/cassianoleal On July 29, 2013 at 16:43:32, neubyr ( ) wrote:
|
Archive powered by MHonArc 2.6.16.