capistrano-asg 0.7.0 → 0.8.1
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 +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +14 -8
- data/capistrano-asg.gemspec +2 -2
- data/lib/capistrano/asg/tasks/asg.rake +1 -1
- data/lib/capistrano/asg/version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81e4267aa7b94619a59a8886ef6413882d2ae392cc32a78396a50bc24c0b5b1f
|
4
|
+
data.tar.gz: bf156d39f818b5976fb66948a00e41cfbc2085cd340e7ed3be0a7df1e1890ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5a50473764af78b3c2340ee9377cdca94874785b115f660a2642f7ad3273cc2fb9fde125f95d6bbc7b6e04959e37baaa6b20ddbf7ba32a1c2e58c44d536e53
|
7
|
+
data.tar.gz: c2b850be8d4fa9efe3d1bce7e2041553f8d27bdd50a6c2f803dedf52ad16f7fd6f9f1215560404aac56277976dacba8e061e5d56b7b33c6a60cf6a0d640e6239
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# 0.8.1
|
2
|
+
|
3
|
+
* update development dependency `bundler` to minimum version `2.0.0`
|
4
|
+
|
5
|
+
# 0.8.0
|
6
|
+
**Breaking Change**
|
7
|
+
* Change name of the configuration options hash to include both the AWS region and
|
8
|
+
the ASG name. To use:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
set "#{region}_#{asg}".to_sym, {
|
12
|
+
...
|
13
|
+
}
|
14
|
+
```
|
15
|
+
|
16
|
+
See the README for more details.
|
17
|
+
|
1
18
|
# 0.7.0
|
2
19
|
|
3
20
|
* Update to AWS SDK v3. Thanks @jpatters and @milgner
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ set :aws_secret_access_key, ENV['AWS_SECRET_ACCESS_KEY']
|
|
31
31
|
set :aws_region, ENV['AWS_REGION']
|
32
32
|
|
33
33
|
# To set region specific things:
|
34
|
-
set ENV['AWS_REGION'].to_sym, {
|
34
|
+
set "#{ENV['AWS_REGION']}_#{asg}".to_sym, {
|
35
35
|
aws_no_reboot_on_create_ami: true,
|
36
36
|
aws_autoscale_instance_size: 'm1.small',
|
37
37
|
aws_launch_configuration_detailed_instance_monitoring: true,
|
@@ -40,6 +40,8 @@ set ENV['AWS_REGION'].to_sym, {
|
|
40
40
|
|
41
41
|
```
|
42
42
|
|
43
|
+
where `asg` is the name of the autoscaling group in the given region.
|
44
|
+
|
43
45
|
## Usage
|
44
46
|
|
45
47
|
Instead of using Capistrano's `server` method, use `autoscale` instead in `deploy/production.rb` (or
|
@@ -57,17 +59,21 @@ autoscale 'asg-app', user: 'apps', roles: [:app, :web]
|
|
57
59
|
autoscale 'asg-db', user: 'apps', roles: [:db]
|
58
60
|
```
|
59
61
|
|
60
|
-
Similarly, if you are deploying to multiple regions:
|
62
|
+
Similarly, if you are deploying to multiple regions and/or multiple ASGs:
|
61
63
|
|
62
64
|
```ruby
|
65
|
+
asgs = %w(asg1 asg2)
|
63
66
|
regions = %w(us-east-1 eu-west-1)
|
64
67
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
asgs.each do |asg|
|
69
|
+
regions.each do |region|
|
70
|
+
set :aws_region, region
|
71
|
+
set "#{region}_#{asg}".to_sym, {
|
72
|
+
aws_autoscale_instance_size: 't2.medium'
|
73
|
+
...
|
74
|
+
}
|
75
|
+
autoscale asg, user: 'apps', roles: [:app, :web, :db]
|
76
|
+
end
|
71
77
|
end
|
72
78
|
```
|
73
79
|
|
data/capistrano-asg.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.email = ['logan.serman@metova.com', 'jeff.fraser@veracross.com', 'michael.martell@veracross.com']
|
13
13
|
spec.summary = 'Capistrano plugin for deploying to AWS AutoScale Groups.'
|
14
14
|
spec.description = "#{spec.summary} Deploys to all instances in a group, creates a fresh AMI post-deploy, and attaches the AMI to your AutoScale Group."
|
15
|
-
spec.homepage = 'http://github.com/
|
15
|
+
spec.homepage = 'http://github.com/veracross/capistrano-asg'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '
|
23
|
+
spec.add_development_dependency 'bundler', '>= 2.0.0'
|
24
24
|
spec.add_development_dependency 'rake'
|
25
25
|
spec.add_development_dependency 'rspec'
|
26
26
|
spec.add_development_dependency 'webmock'
|
@@ -19,7 +19,7 @@ namespace :asg do
|
|
19
19
|
set :aws_autoscale_group, asg
|
20
20
|
Capistrano::Asg::AMI.create do |ami|
|
21
21
|
puts "Autoscaling: Created AMI: #{ami.aws_counterpart.id} from region #{region} in ASG #{asg}"
|
22
|
-
Capistrano::Asg::LaunchConfiguration.create(ami, fetch(region.to_sym, {})) do |lc|
|
22
|
+
Capistrano::Asg::LaunchConfiguration.create(ami, fetch("#{region}_#{asg}".to_sym, {})) do |lc|
|
23
23
|
puts "Autoscaling: Created Launch Configuration: #{lc.aws_counterpart.name} from region #{region} in ASG #{asg}"
|
24
24
|
asg_launch_config[region][asg] = lc.aws_counterpart.name
|
25
25
|
asg_ami_id[region][asg] = ami.aws_counterpart.id
|
metadata
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-asg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
- Jeff Fraser
|
9
9
|
- Michael Martell
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2025-05-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 2.0.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,11 +189,11 @@ files:
|
|
189
189
|
- spec/support/stubs/DescribeTags.200.xml
|
190
190
|
- spec/support/stubs/UpdateAutoScalingGroup.200.xml
|
191
191
|
- spec/support/stubs/security-credentials.200.json
|
192
|
-
homepage: http://github.com/
|
192
|
+
homepage: http://github.com/veracross/capistrano-asg
|
193
193
|
licenses:
|
194
194
|
- MIT
|
195
195
|
metadata: {}
|
196
|
-
post_install_message:
|
196
|
+
post_install_message:
|
197
197
|
rdoc_options: []
|
198
198
|
require_paths:
|
199
199
|
- lib
|
@@ -208,9 +208,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
|
212
|
-
|
213
|
-
signing_key:
|
211
|
+
rubygems_version: 3.1.6
|
212
|
+
signing_key:
|
214
213
|
specification_version: 4
|
215
214
|
summary: Capistrano plugin for deploying to AWS AutoScale Groups.
|
216
215
|
test_files:
|