ironfan 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/ironfan.gemspec +2 -2
- data/lib/ironfan/dsl/volume.rb +10 -0
- data/lib/ironfan/provider/ec2/machine.rb +2 -0
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v4.0.3: correcting EBS volume issues
|
2
|
+
* Volume information should now be correctly saving to Chef nodes
|
3
|
+
* Keep flag now respected correctly for EBS root volumes
|
4
|
+
|
1
5
|
# v4.0.2: Parallel calls working once more
|
2
6
|
* Added Ironfan.parallelize, to run the basic cluster commands in parallel against their servers
|
3
7
|
* Make security_group range and group authorizations store only unique values
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.4
|
data/ironfan.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ironfan"
|
8
|
-
s.version = "4.0.
|
8
|
+
s.version = "4.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Infochimps"]
|
12
|
-
s.date = "2012-09-
|
12
|
+
s.date = "2012-09-13"
|
13
13
|
s.description = "Ironfan allows you to orchestrate not just systems but clusters of machines. It includes a powerful layer on top of knife and a collection of cloud cookbooks."
|
14
14
|
s.email = "coders@infochimps.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/ironfan/dsl/volume.rb
CHANGED
@@ -23,6 +23,16 @@ module Ironfan
|
|
23
23
|
magic :snapshot_id, String
|
24
24
|
magic :snapshot_name, String
|
25
25
|
magic :tags, Hash, :default => {}
|
26
|
+
|
27
|
+
VOLUME_IDS ||= {}
|
28
|
+
VOLUME_IDS.merge!({
|
29
|
+
:blank_xfs => 'snap-d9c1edb1',
|
30
|
+
})
|
31
|
+
|
32
|
+
def snapshot_id
|
33
|
+
Chef::Log.warn("CODE SMELL: EBS specific information in Dsl::Volume::VOLUME_IDS")
|
34
|
+
super || VOLUME_IDS[snapshot_name]
|
35
|
+
end
|
26
36
|
end
|
27
37
|
|
28
38
|
class RaidGroup < Volume
|
@@ -158,6 +158,7 @@ module Ironfan
|
|
158
158
|
|
159
159
|
# register the new volumes for later save!, and tag appropriately
|
160
160
|
computer.machine.volumes.each do |v|
|
161
|
+
Chef::Log.warn "CODE SMELL: Machine is too familiar with EbsVolume problems"
|
161
162
|
ebs_vol = Ec2::EbsVolume.register v
|
162
163
|
drive = computer.drives.values.select do |drive|
|
163
164
|
drive.volume.device == ebs_vol.device
|
@@ -211,6 +212,7 @@ module Ironfan
|
|
211
212
|
end
|
212
213
|
# An array of hashes with dorky-looking keys, just like Fog wants it.
|
213
214
|
def self.block_device_mapping(computer)
|
215
|
+
Chef::Log.warn "CODE SMELL: Machine is too familiar with EbsVolume problems"
|
214
216
|
computer.drives.values.map do |drive|
|
215
217
|
next if drive.disk # Don't create any disc already satisfied
|
216
218
|
volume = drive.volume or next
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ironfan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 4.0.
|
5
|
+
version: 4.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Infochimps
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-13 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: chef
|
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
232
|
requirements:
|
233
233
|
- - ">="
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
hash:
|
235
|
+
hash: -403832733803141254
|
236
236
|
segments:
|
237
237
|
- 0
|
238
238
|
version: "0"
|