ironfan 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/ironfan.gemspec +2 -2
- data/lib/chef/knife/ironfan_knife_common.rb +1 -1
- data/lib/ironfan/broker/computer.rb +1 -1
- data/lib/ironfan/dsl/cluster.rb +1 -1
- data/lib/ironfan/dsl/compute.rb +1 -1
- data/lib/ironfan/dsl/facet.rb +2 -2
- data/lib/ironfan/dsl/server.rb +1 -1
- data/lib/ironfan/provider/chef/client.rb +2 -2
- data/lib/ironfan/provider/chef/node.rb +2 -2
- data/lib/ironfan/provider/ec2/ebs_volume.rb +1 -1
- data/lib/ironfan/provider/ec2/machine.rb +1 -1
- data/spec/chef/cluster_bootstrap_spec.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# v4.3.1:
|
2
|
+
* Correcting fullname to full_name for DSL::Compute children (this allows security_group(full_name) inside of facets)
|
3
|
+
|
1
4
|
# v4.3.0: VPC support
|
2
5
|
* Launch instances in pre-existing VPC and subnet, with group support
|
3
6
|
* Refactored security_group to handle VPC groups (which must use ID, not name)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.3.
|
1
|
+
4.3.1
|
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.3.
|
8
|
+
s.version = "4.3.1"
|
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-10-
|
12
|
+
s.date = "2012-10-03"
|
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 = [
|
@@ -134,7 +134,7 @@ module Ironfan
|
|
134
134
|
bootstrap.config[:identity_file] = config[:identity_file] || computer.ssh_identity_file
|
135
135
|
bootstrap.config[:distro] = config[:distro] || computer.bootstrap_distro
|
136
136
|
bootstrap.config[:use_sudo] = true unless config[:use_sudo] == false
|
137
|
-
bootstrap.config[:chef_node_name] = server.
|
137
|
+
bootstrap.config[:chef_node_name] = server.full_name
|
138
138
|
bootstrap.config[:client_key] = ( computer.client.private_key rescue nil )
|
139
139
|
#
|
140
140
|
bootstrap
|
data/lib/ironfan/dsl/cluster.rb
CHANGED
@@ -11,7 +11,7 @@ module Ironfan
|
|
11
11
|
|
12
12
|
# Utility method to reference all servers from constituent facets
|
13
13
|
def servers
|
14
|
-
result = Gorillib::ModelCollection.new(:item_type => Ironfan::Dsl::Server, :key_method => :
|
14
|
+
result = Gorillib::ModelCollection.new(:item_type => Ironfan::Dsl::Server, :key_method => :full_name)
|
15
15
|
facets.each {|f| f.servers.each {|s| result << s} }
|
16
16
|
result
|
17
17
|
end
|
data/lib/ironfan/dsl/compute.rb
CHANGED
data/lib/ironfan/dsl/facet.rb
CHANGED
@@ -9,12 +9,12 @@ module Ironfan
|
|
9
9
|
def initialize(attrs={},&block)
|
10
10
|
self.cluster_name = attrs[:owner].name unless attrs[:owner].nil?
|
11
11
|
self.name = attrs[:name] unless attrs[:name].nil?
|
12
|
-
self.facet_role Ironfan::Dsl::Role.new(:name =>
|
12
|
+
self.facet_role Ironfan::Dsl::Role.new(:name => full_name.sub('-','_'))
|
13
13
|
super
|
14
14
|
for i in 0 .. instances-1; server(i); end
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
17
|
+
def full_name() "#{cluster_name}-#{name}"; end
|
18
18
|
|
19
19
|
end
|
20
20
|
|
data/lib/ironfan/dsl/server.rb
CHANGED
@@ -26,7 +26,7 @@ module Ironfan
|
|
26
26
|
def self.shared?() false; end
|
27
27
|
def self.multiple?() false; end
|
28
28
|
def self.resource_type() :client; end
|
29
|
-
def self.expected_ids(computer) [computer.server.
|
29
|
+
def self.expected_ids(computer) [computer.server.full_name]; end
|
30
30
|
|
31
31
|
def self.key_dir
|
32
32
|
Chef::Config.client_key_dir || "/tmp/#{ENV['USER']}-client_keys"
|
@@ -59,7 +59,7 @@ module Ironfan
|
|
59
59
|
def self.create!(computer)
|
60
60
|
return if computer.client?
|
61
61
|
client = Client.new
|
62
|
-
client.name computer.server.
|
62
|
+
client.name computer.server.full_name
|
63
63
|
client.admin false
|
64
64
|
|
65
65
|
params = {:name => client.name, :admin => client.admin, :private_key => true }
|
@@ -39,7 +39,7 @@ module Ironfan
|
|
39
39
|
def self.multiple?() false; end
|
40
40
|
# def self.resource_type() self; end
|
41
41
|
def self.resource_type() :node; end
|
42
|
-
def self.expected_ids(computer) [computer.server.
|
42
|
+
def self.expected_ids(computer) [computer.server.full_name]; end
|
43
43
|
|
44
44
|
def to_display(style,values={})
|
45
45
|
values["Chef?"] = adaptee.nil? ? "no" : "yes"
|
@@ -113,7 +113,7 @@ module Ironfan
|
|
113
113
|
def self.create!(computer)
|
114
114
|
return if computer.node?
|
115
115
|
node = Node.new
|
116
|
-
node.name computer.server.
|
116
|
+
node.name computer.server.full_name
|
117
117
|
node.create! computer
|
118
118
|
computer.node = node
|
119
119
|
remember node
|
@@ -27,7 +27,7 @@ module Ironfan
|
|
27
27
|
def self.expected_ids(computer)
|
28
28
|
computer.server.volumes.values.map do |volume|
|
29
29
|
saved = computer.node[:volumes][volume.name][:volume_id] rescue nil
|
30
|
-
ebs_name = "#{computer.server.
|
30
|
+
ebs_name = "#{computer.server.full_name}-#{volume.name}"
|
31
31
|
[ volume.volume_id, saved, ebs_name ]
|
32
32
|
end.flatten.compact
|
33
33
|
end
|
@@ -38,7 +38,7 @@ module Ironfan
|
|
38
38
|
def self.multiple?() false; end
|
39
39
|
# def self.resource_type() Ironfan::IaasProvider::Machine; end
|
40
40
|
def self.resource_type() :machine; end
|
41
|
-
def self.expected_ids(computer) [computer.server.
|
41
|
+
def self.expected_ids(computer) [computer.server.full_name]; end
|
42
42
|
|
43
43
|
def name
|
44
44
|
return id if tags.empty?
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ironfan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 4.3.
|
5
|
+
version: 4.3.1
|
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-10-
|
13
|
+
date: 2012-10-03 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: chef
|
@@ -233,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
233
233
|
requirements:
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
hash: -
|
236
|
+
hash: -2956161478008164858
|
237
237
|
segments:
|
238
238
|
- 0
|
239
239
|
version: "0"
|