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 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.0
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.0"
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-02"
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.fullname
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
@@ -25,7 +25,7 @@ module Ironfan
25
25
  end
26
26
 
27
27
  def name
28
- return server.fullname if server?
28
+ return server.full_name if server?
29
29
  return @name if @name
30
30
  "unnamed:#{object_id}"
31
31
  end
@@ -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 => :fullname)
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
@@ -32,7 +32,7 @@ module Ironfan
32
32
  super
33
33
  end
34
34
 
35
- def fullname() name; end
35
+ def full_name() name; end
36
36
 
37
37
  # Add the given role/recipe to the run list. You can specify placement of
38
38
  # `:first`, `:normal` (or nil) or `:last`; the final runlist is assembled
@@ -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 => fullname.sub('-','_'))
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 fullname() "#{cluster_name}-#{name}"; end
17
+ def full_name() "#{cluster_name}-#{name}"; end
18
18
 
19
19
  end
20
20
 
@@ -16,7 +16,7 @@ module Ironfan
16
16
  super
17
17
  end
18
18
 
19
- def fullname() "#{cluster_name}-#{facet_name}-#{name}"; end
19
+ def full_name() "#{cluster_name}-#{facet_name}-#{name}"; end
20
20
  def index() name.to_i; end
21
21
  def implied_volumes() selected_cloud.implied_volumes; end
22
22
 
@@ -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.fullname]; end
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.fullname
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.fullname]; end
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.fullname
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.fullname}-#{volume.name}"
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.fullname]; end
41
+ def self.expected_ids(computer) [computer.server.full_name]; end
42
42
 
43
43
  def name
44
44
  return id if tags.empty?
@@ -46,6 +46,6 @@ describe Chef::Knife::ClusterBootstrap do
46
46
 
47
47
  # it 'loads computers from json' do
48
48
  # computers.length.should == 2
49
- # computers.first.server.fullname.should == 'gunbai-hub-0'
49
+ # computers.first.server.full_name.should == 'gunbai-hub-0'
50
50
  # end
51
51
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 4.3.0
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-02 00:00:00 Z
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: -131746219185203248
236
+ hash: -2956161478008164858
237
237
  segments:
238
238
  - 0
239
239
  version: "0"