[chef] Re: Re: Snowflake attributes


Chronological Thread 
  • From: Bryan Baugher < >
  • To:
  • Subject: [chef] Re: Re: Snowflake attributes
  • Date: Tue, 29 Oct 2013 11:47:55 -0500

Can you elaborate? I have been setting up multiple chef nodes on a single machine for some time for things like running application X, Y, and Z or multiple instances of application X all on the same machine.


On Tue, Oct 29, 2013 at 11:32 AM, Tom Duffield < " target="_blank"> > wrote:
You can't configure multiple nodes to run on the same physical machine. Doing so will introduce pain you can not imagine. 

That being said, what you want to do isn't necessarily impossible. What you want to do is introduce another level of abstraction and without knowing too much about your setup I would advise looking into creating an "application server" LWRP. 

Tom Duffield — Automation Consulting Engineer

651.769.7497 –  " style="color:rgb(105,117,130)" target="_blank">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube


On Tue, Oct 29, 2013 at 11:17 AM, < " target="_blank"> > wrote:
Hi everyone,

I am fairly experienced with Chef and always try to follow the rule to not
create 'snowflake' nodes and to put all attributes in a
role/environment/databag.

What if I want to setup more than one application server on the same machine?
My setup would be to create 2 chef nodes for the same machine and configure
them each separately, but I can't use the same role because of port collisions.

Some possible solutions,

 * Create X roles if we need X servers on a single machine
 * Don't put multiple servers on the same machine
 * Use node attributes
 * Have cookbook select free ports

The best solution to seems to be 'Don't put multiple servers on the same
machine', but while I want that for other reasons then this problem it is
outside my control.

'Create X roles if we need X servers on a single machine' and 'Use node
attributes' are both obviously bad but work.

'Have cookbook select free ports', seems like it could have merit but could
complicate the deployment.

Any thoughts?




--
-Bryan



Archive powered by MHonArc 2.6.16.

§