capistrano-scalr 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +17 -7
- data/lib/capistrano-scalr/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -15,13 +15,23 @@ After gem installation, add the following to your deploy.rb:
|
|
15
15
|
set :gateway_type, "<centos|ubuntu>"
|
16
16
|
require 'capistrano-scalr'
|
17
17
|
|
18
|
-
The above will automatically connect to your scalr farm using the gateway you specify (the primary database server is a logical choice, since it usually stays pretty static), enumerate the instances in your farm,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
The above will automatically connect to your scalr farm using the gateway you specify (the primary database server is a logical choice, since it usually stays pretty static), enumerate the instances in your farm, and populate the `scalr_hosts` array with the instances. You can then define roles based on `scalr_hosts`:
|
19
|
+
|
20
|
+
role :lb, :no_release => true do
|
21
|
+
scalr_hosts['loadbalancer']
|
22
|
+
end
|
23
|
+
role :web, :no_release => true do
|
24
|
+
scalr_hosts['www']
|
25
|
+
end
|
26
|
+
role :app do
|
27
|
+
scalr_hosts['app']
|
28
|
+
end
|
29
|
+
role :db, :no_release => true do
|
30
|
+
scalr_hosts['mysql']
|
31
|
+
end
|
32
|
+
role :memcached, :no_release => true do
|
33
|
+
scalr_hosts['memcached']
|
34
|
+
end
|
25
35
|
|
26
36
|
I also recommend that you use ssh-agent on your development workstation, enable agent forwarding on your scalr hosts, and set this in deploy.rb:
|
27
37
|
|