[chef] Re: Re: What is the best way to install many sets of same environment with different properties in Chef?


Chronological Thread 
  • From: Brad Knowles < >
  • To: jeffty < >
  • Cc: Brad Knowles < >,
  • Subject: [chef] Re: Re: What is the best way to install many sets of same environment with different properties in Chef?
  • Date: Fri, 1 May 2015 10:34:17 -0500

On May 1, 2015, at 10:18 AM, jeffty 
< >
 wrote:

> And can you provide some samples about the built-in chef discovery method? 
> We are interested in that.

You’re looking for “search”.  I would start at 
<https://docs.chef.io/chef_search.html>.

The exact way you would use this can differ, depending on your cookbooks and 
how you want to use them.  You could have your clients search for all nodes 
with a given role (e.g., role == database server), and as the servers of the 
different types are brought up they will register themselves using chef.  Or, 
you could have the clients search a databag, and as the servers come up and 
become operational, they put their information in the appropriate databag.

There’s a number of different ways you can solve this problem with search, 
depending on your specific requirements.

--
Brad Knowles 
< >
LinkedIn Profile: <http://tinyurl.com/y8kpxu>

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§