- From: Edward Sargisson <
>
- To:
- Subject: [chef] Re: Starting out with the opscode platform.
- Date: Sun, 29 May 2011 19:24:20 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=ugcBg4iVGV3fdL3A3qxPlrUjbhWcV7tli6LcU6hmUsKaCWYDtIS7AQnx+0VuKyheGT EP9k4rkZIzFHEcAUNzA1oGeShIR1vZg5AI1dDz+tkQuBTkSunMdF6Zvu9gFAzTF+96Kl mi1kZ7JQoENnVGKfEd0hYswDU3dOeIYWw4sOY=
>
Does this mean I need to create a recipe for each node so I can
>
configure it? What is the best practice for setting up your nodes?
Ah no.
You define a Role for each kind of server you have in your
architecture. If you have a database server and two application
servers (Tomcat or PHP or something) then you would setup two roles,
db-server and app-server.
Then, in the run list for the node you specify the role.
When the chef-client reads the run list it finds the role, reads the
role and follows the recipes in the role.
If you have some custom setup (most people do) then you would create a
new recipe to do that and include it in the relevant role.
The run list can be set at the time of the first run (by including it
in the bootstrap file) or you can edit it through the web interface or
with knife.
Cheers,
Edward
On Sun, May 29, 2011 at 7:08 PM, Tim Uckun
<
>
wrote:
>
Hey all.
>
>
I want through the starting tutorial on the opscode web site using the
>
opscode platform. Everything worked as expected but I do have one
>
question.
>
>
Apparently the configuration for my node is kept only on the chef
>
server (not on my workstation). Is this right? I can see the run list
>
on the server, I can get the run list when I with knife but I don't
>
see a file anywhere on my machine which lists the node, lists the
>
variables or the params for the node etc.
>
>
Does this mean I need to create a recipe for each node so I can
>
configure it? What is the best practice for setting up your nodes?
>
>
Cheers.
>
Archive powered by MHonArc 2.6.16.