capistrano3-autoscaling-deploy 0.6 → 0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/capistrano/autoscaling_deploy/version.rb +1 -1
- data/lib/capistrano/tasks/autoscaling.rake +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmM0ZWYxMjY3MTM4M2FmZTdjZThkOGEwN2JmMTU1NzdmNzc3YzMxNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWNjNGM0MjE3M2UxZDkzN2EzMWEwYzcyNzM1OGYxODU3ODY1MjM0Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2FkYTU3YTAyN2Q0NWYyZDUzYzdkZThjZmM2YmM3MmY2YTg0NjEzYmYxY2M5
|
10
|
+
NDI1NDcyMTBjZDBmOGM5OThhNTIzYjY1MmNmM2E5N2YxZjVmM2JkN2UwNmRl
|
11
|
+
MTNjMjY1YmY5MGZiNjc0YmQ0YjhmYjY1ZGZhZDFjNjRlNDE4M2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2Q3MWQ4NjlkY2JhMGY5MDc0M2FlMmUxOWQ2ZTllNjQxZDJlNDlmZjFlZWEy
|
14
|
+
ZDU3MGQxYzMwMzZhOTJhMWFiOGU0ZDE5YTRmNWI1NWRmOGQ4MzhiNTFhN2E2
|
15
|
+
MjgxNzhhYWFlMDJjZWEwMDUxZjBjMGU3ZWFlN2ZhMTgyOGExZmM=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -45,6 +45,7 @@ set :aws_access_key_id, 'YOUR AWS KEY ID'
|
|
45
45
|
set :aws_secret_access_key, 'YOUR AWS SECRET KEY'
|
46
46
|
set :aws_autoscaling_group_name, 'YOUR NAME OF AUTO SCALING GROUP NAME'
|
47
47
|
set :aws_deploy_roles, [:app, :web, :db]
|
48
|
+
set :aws_deploy_user, 'USER FOR SSH CONNECTION'
|
48
49
|
```
|
49
50
|
|
50
51
|
you can add more auto scaling configs to deploy to multiple auto scaling groups like a cluster
|
@@ -22,13 +22,14 @@ namespace :autoscaling_deploy do
|
|
22
22
|
task :setup_instances do
|
23
23
|
ec2_instances = fetch_ec2_instances
|
24
24
|
aws_deploy_roles = fetch(:aws_deploy_roles)
|
25
|
+
aws_deploy_user = fetch(:aws_deploy_user)
|
25
26
|
|
26
27
|
ec2_instances.each {|instance|
|
27
28
|
if ec2_instances.first[0] == instance
|
28
|
-
server instance, *aws_deploy_roles
|
29
|
+
server instance, *aws_deploy_roles, user: aws_deploy_user
|
29
30
|
# info("First Server: #{instance} - #{aws_deploy_roles}")
|
30
31
|
else
|
31
|
-
server instance, *sanitize_roles(roles)
|
32
|
+
server instance, *sanitize_roles(roles), user: aws_deploy_user
|
32
33
|
# info("Server: #{instance} - #{sanitize_roles(aws_deploy_roles)}")
|
33
34
|
end
|
34
35
|
}
|