Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
creating tasks for multiple environments (and gateways)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Joe Wilcoxson  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 21:31
From: Joe Wilcoxson <jjwilcox...@gmail.com>
Date: Tue, 3 Nov 2009 16:31:12 -0500
Local: Tues 3 Nov 2009 21:31
Subject: creating tasks for multiple environments (and gateways)

Hi, I'm looking for a way to manage systems in multiple
datacenters/environments, each with their own gateway.

gateway 1 -> app1 app2 app3
gateway 2 -> app1 app2 app3

I get stuck when trying to set "gateway" within the same capfile after its
already been set and was looking for a recommendation on how to approach
this problem.

example: I can run "cap datacenter1:ifconfig datacenter2:ifconfig" but if i
create a 3rd task consisting of these 2 tasks the first gateway is set and
is re-used for the second task. "doboth" would yield the interface info for
the appservers in datacenter1 twice.

namespace :datacenter1 do
set :gateway, "gateway1"
 task :ifconfig, :roles => [:app] do
  run "ifconfig -a"
 end
end

namespace :datacenter2 do
set :gateway, "gateway2"
 task :ifconfig, :roles => [:app] do
  run "ifconfig -a"
 end
end

task :doboth do
 dnv:ifconfig
 phl:ifconfig
end

Thanks for your time.

-Joe Wilcoxson


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lee Hambley  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 22:26
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Tue, 3 Nov 2009 23:26:46 +0100
Local: Tues 3 Nov 2009 22:26
Subject: Re: [capistrano] creating tasks for multiple environments (and gateways)

Joe,

We don't support multiple gateways I'm afraid - you might have to go a level
lower, and configure TCP routes and tunnels :( (or, use one gateway
(localhost loopback... with tcp routes encapsulated somehow))

-- Lee Hambley

Twitter: @leehambley | @capistranorb
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1

2009/11/3 Joe Wilcoxson <jjwilcox...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google