[chef] Re: chef node and client creation


Chronological Thread 
  • From: Cassiano Leal < >
  • To: < >
  • Cc:
  • Subject: [chef] Re: chef node and client creation
  • Date: Mon, 29 Jul 2013 16:52:20 -0300

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 Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

On July 29, 2013 at 16:43:32, neubyr ( ) wrote:


I am looking for documentation on chef client and node objects. I created a node as follows, but it doesn't show up in the search.


$ :~/chef-repo$ knife node create test1
Created node[test1]

$ :~/chef-repo$ knife node show test1
Node Name:   test1
Environment: _default
FQDN:        
IP:          
Run List:    
Roles:       
Recipes:     
Platform:     
Tags:        

$ :~/chef-repo$ knife search node 'test1'
0 items found

How can I get it working to run some recipes?  

Also, what's the relationship between a client and node? How can a client be associated with a node? 

- N



Archive powered by MHonArc 2.6.16.

§