Re: recommended way to add a role_implication

14 views
Skip to first unread message

mrflip

unread,
Jul 19, 2012, 2:59:26 AM7/19/12
to infochi...@googlegroups.com, temu...@infochimps.com, Philip (flip) Kromer
I *think* this will work:
  • In homebase/config, make a file called 'role_implications.rb', with things like:
    • Ironfan::ComputeBuilder.role_implication "party_time" do
    •   self.cloud.security_group "get_down" do
    •   end
    • end
  • in the clusters that use that role, require the file with something like `require File.expand_path('../config/role_implications.rb', File.dirname(__FILE__))`

If it does not work, please post an issue and we'll think harder.

btw: @temujin9 hates role_implications and I think is threatening to take them on a "fishing trip" in a future release. I think we'd both be interested to hear your use case -- there's some part of role_implications that is a good idea, but its current implementation is not that good idea.

flip

On Thursday, July 19, 2012 12:15:41 AM UTC-5, Michael Johnston wrote:
What would be the recommended way to add a role_implication to an ironfan homebase, that would be available to all clusters (like web_server etc)?
Reply all
Reply to author
Forward
0 new messages