[chef] Re: Multiple application instances on a node


Chronological Thread 
  • From: Igor Afonov < >
  • To:
  • Subject: [chef] Re: Multiple application instances on a node
  • Date: Tue, 31 Jul 2012 16:25:34 +0300

Hi,

I usually just use separate cookbooks for each application. The same way you can have a node/role attributes separated for each application

node['application1']['root_path']
node['application2']['root_path']

etc.

If your application are very similar (for example several rails applications) you can use one cookbook and control everything via attributes - here is an example - https://github.com/iafonov/rails_ghetto

On Tue, Jul 31, 2012 at 4:07 PM, Ian Buchanan < " target="_blank"> > wrote:
I've tried to Google and search this mailing list but I might be missing the
right term for what I'm trying to accomplish.

I want to install and configure multiple web applications on the same node.
Although I'm writing a cookbook that does more, the standard apache2 cookbook
is a sufficient example. I can run the "web_app" definition many times to get a
conf file for each web app. However, I can't work out how to store attributes
for each application. Is there a pattern for when there are multiple of the
same "thing" on a node?




Archive powered by MHonArc 2.6.16.

§