rubber 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b88f8b7ebbb362ef4175a4ec9616e163df8a7fe9
4
- data.tar.gz: 28873faec8931af6cec6f5308ac7e273c9f2f3da
3
+ metadata.gz: 579d8f1db604445157373a012bc91dd34662bad6
4
+ data.tar.gz: 7ae18cf0acbda8bfb970fcf194e836e11a7a3fc4
5
5
  SHA512:
6
- metadata.gz: fe2c83a8626059aaf8dd0a8ac3cd88fbc82e87a127294ead52c946bbae68a85de359bd7c69f81d0504d5ed23e44ce0f3358e5c049fbef224772e41d68f7fcaf4
7
- data.tar.gz: 912cb64154262793447754ea1465400557d58ed8272aa4e88b28021bd0cfc6f49c1c7c736d3819da54a3d3798588d5f78e675a7faf86449567bde593df3d8095
6
+ metadata.gz: 2b911de20673d642b3fa5a8b517bec8cdd4cdc062a0064300180146f231498420a036f6b02f44f1ac454079c0c42a735a318b62c7eac2c1222c8b3b14f3a8ba2
7
+ data.tar.gz: bd4442cb10507123a35751a44a9bad30aa938d05c748a61bf9ada7df13c8da42a46d43da107e0d6e82297388456228541e7b1e74b342556b36e7a920406ffd12
data/CHANGELOG CHANGED
@@ -1,3 +1,18 @@
1
+ 3.2.2 (04/13/2016)
2
+
3
+ Improvements:
4
+ ============
5
+
6
+ [core] Default VPC configuration can now be defined at the cloud_provider level. <1f41e31>
7
+
8
+ Bug Fixes:
9
+ =========
10
+
11
+ [core] setup_volumes no longer fails for mount points prefixed with "/mnt" (e.g.: "/mnt2", "/mnt3", etc.) <bd3fbbd>
12
+ [core] DNS entries are no longer created for instances with no external ip. <87a2501>
13
+ [core] Additional/custom EBS volumes now work for VPC instances with no external ip. <7b62443>
14
+
15
+
1
16
  3.2.1 (02/07/2016)
2
17
 
3
18
  Improvements:
@@ -16,13 +16,21 @@ module Rubber
16
16
  # Remember that instance.network is our more generic term for vpc_alias
17
17
  role_names = instance.roles.map(&:name)
18
18
  instance.vpc_id = setup_vpc(instance.network, instance.vpc_cidr).id
19
- instance.gateway = host_env.private_nic.gateway
19
+
20
+ # Check the instance config for a private_nic, then the cloud provider
21
+ private_nic = host_env.private_nic || cloud_env.private_nic
22
+
23
+ unless private_nic
24
+ raise "private_nic configuration required at either the instance level or cloud provider level"
25
+ end
26
+
27
+ instance.gateway = private_nic.gateway
20
28
  private_public = instance.gateway == 'public' ? 'public' : 'private'
21
29
 
22
30
  instance.subnet_id = setup_vpc_subnet(
23
31
  instance.vpc_id,
24
32
  instance.network,
25
- host_env.private_nic,
33
+ private_nic,
26
34
  instance.zone,
27
35
  "#{instance.network} #{instance.zone} #{private_public}"
28
36
  ).subnet_id
@@ -599,7 +599,10 @@ namespace :rubber do
599
599
  env = rubber_cfg.environment.bind(instance_item.role_names, instance_item.name)
600
600
  if env.dns_provider
601
601
  provider = Rubber::Dns::get_provider(env.dns_provider, env)
602
- provider.update(instance_item.name, instance_item.external_ip)
602
+
603
+ if instance_item.external_ip && (instance_item.external_ip.length > 0)
604
+ provider.update(instance_item.name, instance_item.external_ip)
605
+ end
603
606
 
604
607
  # add the ip aliases for web tools hosts so we can map internal tools
605
608
  # to their own vhost to make proxying easier (rewriting url paths for
@@ -122,7 +122,13 @@ namespace :rubber do
122
122
  # we don't mount/format at this time if we are doing a RAID array
123
123
  if vol_spec['mount'] && vol_spec['filesystem']
124
124
  # then format/mount/etc if we don't have an entry in hosts file
125
- task :_setup_volume, :hosts => ic.external_ip do
125
+ if ic.external_ip && (ic.external_ip.length > 0)
126
+ host = ic.external_ip
127
+ else
128
+ host = ic.internal_ip
129
+ end
130
+
131
+ task :_setup_volume, :hosts => host do
126
132
  rubber.sudo_script 'setup_volume', <<-ENDSCRIPT
127
133
  # Make sure the newly added volume was found.
128
134
  rescan-scsi-bus || true
@@ -160,7 +166,7 @@ namespace :rubber do
160
166
  #{("mkdir -p '#{vol_spec['mount']}'") if vol_spec['mount']}
161
167
  #{("mount '#{vol_spec['mount']}'") if vol_spec['mount']}
162
168
 
163
- elif ! grep -q '#{vol_spec['mount']}' /etc/fstab | grep -q '#{vol_spec['device']}'; then
169
+ elif ! grep -q '#{vol_spec['mount']}\>' /etc/fstab | grep -q '#{vol_spec['device']}'; then
164
170
  echo 'You already have #{vol_spec['mount']} mounted as a different device in /etc/fstab'
165
171
  echo 'Please choose a different mount point or manually edit /etc/fstab'
166
172
  echo 'and re-run cap rubber:setup_volumes'
@@ -1,3 +1,3 @@
1
1
  module Rubber
2
- VERSION = '3.2.1'.freeze
2
+ VERSION = '3.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Conway
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-07 00:00:00.000000000 Z
12
+ date: 2016-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -170,7 +170,6 @@ files:
170
170
  - ".travis.yml"
171
171
  - CHANGELOG
172
172
  - Gemfile
173
- - Gemfile.1.8.7
174
173
  - LICENSE
175
174
  - README.md
176
175
  - Rakefile
@@ -689,7 +688,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
689
688
  version: '0'
690
689
  requirements: []
691
690
  rubyforge_project:
692
- rubygems_version: 2.4.5.1
691
+ rubygems_version: 2.2.2
693
692
  signing_key:
694
693
  specification_version: 4
695
694
  summary: A capistrano plugin for managing multi-instance deployments to the cloud
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem 'jruby-openssl', :platform => :jruby
4
- gem 'unlimited-strength-crypto', :platform => :jruby
5
- gem 'nokogiri', '~>1.5.0'
6
- gem 'mime-types', '~>1.25'
7
-
8
- # Specify your gem's dependencies in rubber.gemspec
9
- gemspec