rubber roles

116 views
Skip to first unread message

ckycons...@gmail.com

unread,
Apr 14, 2013, 12:19:57 PM4/14/13
to rubbe...@googlegroups.com
Hi,
I just wanted to know where are the roles defined within rubber...

so for example, when I create an instance using cap rubber:create and then give it a role of 'app', where is the config file which then translates to the fact that app roles equals installing apache/passenger etc and not mysql for example?


Michael-Keith Bernard

unread,
Apr 15, 2013, 3:55:16 PM4/15/13
to rubbe...@googlegroups.com
Instance configuration information is stored in the instance-*.yml files. Please note that each environment (production, staging, etc.) will have its own instance configuration.

Gabriel Cebrian

unread,
Apr 16, 2013, 1:56:04 PM4/16/13
to rubbe...@googlegroups.com
You can take a look at the code on https://github.com/rubber/rubber/blob/master/lib/rubber/environment.rb#L66 to get an idea on how rubber finds the known roles for your app.'

Now, let's assume you want to use the complete_passenger template (installs haproxy as the web role and apache/passenger as the app role). When this template gets vulcanized it will add the file https://github.com/rubber/rubber/blob/master/templates/complete_passenger/config/rubber/rubber-complete.yml to your rubber folder which will define what templates the app, web and web_tools roles will have. If you also take  a look at https://github.com/rubber/rubber/blob/master/templates/complete_passenger/templates.yml you will see all the templates that will get installed when the complete_passenger templates gets vulcanized.

You can contrast this example with the complete_passenger_postgresql role which all it does it what I explained above + installs the postgresql template. You can find more examples here https://github.com/rubber/rubber/blob/master/templates/complete_passenger_postgresql/templates.yml


On Sunday, April 14, 2013 9:19:57 AM UTC-7, ckycons...@gmail.com wrote:
Message has been deleted

William Limratana

unread,
Apr 16, 2013, 4:59:23 PM4/16/13
to rubbe...@googlegroups.com
One role I am not sure what to do with is 'common'.  Should I remove common from my old server (which will just be 'web_tools', or should both my new server and old have it?
Reply all
Reply to author
Forward
0 new messages