rubber 2.7.4 → 2.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG +15 -0
- data/lib/rubber/cloud/base.rb +6 -1
- data/lib/rubber/cloud/fog.rb +19 -14
- data/lib/rubber/recipes/rubber/volumes.rb +2 -2
- data/lib/rubber/version.rb +1 -1
- data/templates/base/config/rubber/rubber-ruby.yml +2 -2
- data/templates/redis/config/rubber/rubber-redis.yml +1 -1
- data/test/cloud/fog_test.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a21d909c8eaa9564ee987b045ab189387d5c46
|
4
|
+
data.tar.gz: 24830a98a3204ebab53f6fd88ec070dd6c487e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c6fde0e0c084d19292a0656780ec0f731ac8fb0386e218d52c18e9b66b6204650dee4be70b9e50c3118c2163bbc9cf045da0446b73df35ed78c086fc0f85ec
|
7
|
+
data.tar.gz: 61bbc6df7047f11afeef55b3f6d7c27d379db6712f5e7c3e04a0c749a974caf42d299e3ddb08b2fcb0e5ac5c3aa91f56d8cae57c46fe2b5a3542eeb3ca358a3a
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
2.7.5 (03/28/2014)
|
2
|
+
|
3
|
+
Improvements:
|
4
|
+
============
|
5
|
+
|
6
|
+
[base] Upgraded ruby-build from 20140210 to 20140225 and bumped the default ruby version from 1.9.3-p484 to 2.0.0-p451. <396b72e>
|
7
|
+
[core] Install iptables if it's not already installed and it's needed to set up (non-EC2) firewall rules. <581c2e0>
|
8
|
+
[redis] Upgraded from redis 2.8.7 to 2.8.8. <8775a76>
|
9
|
+
|
10
|
+
Bug Fixes:
|
11
|
+
=========
|
12
|
+
|
13
|
+
[core] Fixed a problem whereby if a part of the :deploy_to path (e.g., /mnt) is remounted with an attached volume, the code may not deploy properly. <a98edcc>
|
14
|
+
|
15
|
+
|
1
16
|
2.7.4 (03/13/2014)
|
2
17
|
|
3
18
|
Improvements:
|
data/lib/rubber/cloud/base.rb
CHANGED
@@ -97,7 +97,7 @@ module Rubber
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def setup_security_groups(host=nil, roles=[])
|
100
|
-
raise "
|
100
|
+
raise "Provider can only set up security groups for one host a time" if host.split(',').size != 1
|
101
101
|
|
102
102
|
rubber_cfg = Rubber::Configuration.get_configuration(Rubber.env)
|
103
103
|
scoped_env = rubber_cfg.environment.bind(roles, host)
|
@@ -114,6 +114,11 @@ module Rubber
|
|
114
114
|
groups = isolate_groups(groups)
|
115
115
|
|
116
116
|
script = <<-ENDSCRIPT
|
117
|
+
# Install iptables if it's not already installed.
|
118
|
+
if ! dpkg -l $SOFTWARE; then
|
119
|
+
export DEBIAN_FRONTEND=noninteractive; apt-get -q -o Dpkg::Options::=--force-confold -y --force-yes install iptables
|
120
|
+
fi
|
121
|
+
|
117
122
|
# Clear out all firewall rules to start.
|
118
123
|
iptables -F
|
119
124
|
|
data/lib/rubber/cloud/fog.rb
CHANGED
@@ -31,11 +31,11 @@ module Rubber
|
|
31
31
|
|
32
32
|
def create_instance(instance_alias, ami, ami_type, security_groups, availability_zone, region)
|
33
33
|
response = compute_provider.servers.create(:image_id => ami,
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
:flavor_id => ami_type,
|
35
|
+
:groups => security_groups,
|
36
|
+
:availability_zone => availability_zone,
|
37
|
+
:key_name => env.key_name,
|
38
|
+
:name => instance_alias)
|
39
39
|
|
40
40
|
response.id
|
41
41
|
end
|
@@ -49,34 +49,37 @@ module Rubber
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def reboot_instance(instance_id)
|
52
|
-
|
52
|
+
compute_provider.servers.get(instance_id).reboot()
|
53
53
|
end
|
54
54
|
|
55
55
|
def stop_instance(instance, force=false)
|
56
56
|
# Don't force the stop process. I.e., allow the instance to flush its file system operations.
|
57
|
-
|
57
|
+
compute_provider.servers.get(instance.instance_id).stop(force)
|
58
58
|
end
|
59
59
|
|
60
60
|
def start_instance(instance)
|
61
|
-
|
61
|
+
compute_provider.servers.get(instance.instance_id).start()
|
62
62
|
end
|
63
63
|
|
64
64
|
def create_static_ip
|
65
65
|
address = compute_provider.addresses.create()
|
66
|
-
|
66
|
+
|
67
|
+
address.public_ip
|
67
68
|
end
|
68
69
|
|
69
70
|
def attach_static_ip(ip, instance_id)
|
70
71
|
address = compute_provider.addresses.get(ip)
|
71
72
|
server = compute_provider.servers.get(instance_id)
|
72
73
|
response = (address.server = server)
|
73
|
-
|
74
|
+
|
75
|
+
! response.nil?
|
74
76
|
end
|
75
77
|
|
76
78
|
def detach_static_ip(ip)
|
77
79
|
address = compute_provider.addresses.get(ip)
|
78
80
|
response = (address.server = nil)
|
79
|
-
|
81
|
+
|
82
|
+
! response.nil?
|
80
83
|
end
|
81
84
|
|
82
85
|
def describe_static_ips(ip=nil)
|
@@ -90,12 +93,13 @@ module Rubber
|
|
90
93
|
ip[:ip] = item.public_ip
|
91
94
|
ips << ip
|
92
95
|
end
|
93
|
-
|
96
|
+
|
97
|
+
ips
|
94
98
|
end
|
95
99
|
|
96
100
|
def destroy_static_ip(ip)
|
97
101
|
address = compute_provider.addresses.get(ip)
|
98
|
-
|
102
|
+
address.destroy
|
99
103
|
end
|
100
104
|
|
101
105
|
def create_image(image_name)
|
@@ -114,7 +118,8 @@ module Rubber
|
|
114
118
|
image[:root_device_type] = item.root_device_type
|
115
119
|
images << image
|
116
120
|
end
|
117
|
-
|
121
|
+
|
122
|
+
images
|
118
123
|
end
|
119
124
|
|
120
125
|
def destroy_image(image_id)
|
@@ -44,9 +44,9 @@ namespace :rubber do
|
|
44
44
|
deploy_to = fetch(:deploy_to, nil)
|
45
45
|
|
46
46
|
unless deploy_to.nil?
|
47
|
-
deployed = capture("echo $(ls
|
47
|
+
deployed = capture("echo $(ls #{deploy_to} 2> /dev/null)")
|
48
48
|
|
49
|
-
|
49
|
+
if deployed.strip.size == 0
|
50
50
|
set :rubber_code_was_updated, false
|
51
51
|
end
|
52
52
|
end
|
data/lib/rubber/version.rb
CHANGED
@@ -12,12 +12,12 @@ packages: [build-essential, git-core, subversion, curl, autoconf, bison, ruby, z
|
|
12
12
|
|
13
13
|
# REQUIRED: The version of ruby-build to use for building ruby.
|
14
14
|
# It must be one of the versions from https://github.com/sstephenson/ruby-build/blob/master/CHANGELOG.md
|
15
|
-
ruby_build_version:
|
15
|
+
ruby_build_version: 20140225
|
16
16
|
|
17
17
|
# REQUIRED: Set to the version string for the ruby version you wish to use
|
18
18
|
# Run "ruby-build --definitions" to see the list of possible options or look through the list of
|
19
19
|
# recipes online at https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build
|
20
|
-
ruby_version:
|
20
|
+
ruby_version: 2.0.0-p451
|
21
21
|
|
22
22
|
# REQUIRED: Installation path for ruby.
|
23
23
|
ruby_path: "/usr/local/rubies/#{ruby_version}"
|
data/test/cloud/fog_test.rb
CHANGED
@@ -7,10 +7,10 @@ class FogTest < Test::Unit::TestCase
|
|
7
7
|
context "fog" do
|
8
8
|
|
9
9
|
setup do
|
10
|
-
env = {'compute_credentials' =>
|
11
|
-
{'rackspace_api_key' =>
|
10
|
+
env = { 'compute_credentials' =>
|
11
|
+
{ 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'},
|
12
12
|
'storage_credentials' =>
|
13
|
-
{'rackspace_api_key' =>
|
13
|
+
{ 'rackspace_api_key' => 'XXX', 'rackspace_username' => 'YYY', 'provider' => 'rackspace'}}
|
14
14
|
env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
|
15
15
|
@cloud = Rubber::Cloud::Fog.new(env, nil)
|
16
16
|
end
|
@@ -21,7 +21,7 @@ class FogTest < Test::Unit::TestCase
|
|
21
21
|
end
|
22
22
|
|
23
23
|
should "provide storage" do
|
24
|
-
|
24
|
+
assert @cloud.storage('mybucket')
|
25
25
|
end
|
26
26
|
|
27
27
|
should "not provide table store" do
|
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: 2.7.
|
4
|
+
version: 2.7.5
|
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: 2014-03-
|
12
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|