ironfan 6.0.3 → 6.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,7 @@ module Ironfan
53
53
  end
54
54
 
55
55
  def ssh_key_name(computer)
56
- keypair ? keypair.to_s : computer.server.cluster_name
56
+ keypair ? keypair.to_s : computer.server.keypair_name
57
57
  end
58
58
 
59
59
  def default_region
@@ -53,7 +53,7 @@ module Ironfan
53
53
  end
54
54
 
55
55
  def ssh_key_name(computer)
56
- keypair ? keypair.to_s : computer.server.cluster_name
56
+ keypair ? keypair.to_s : computer.server.keypair_name
57
57
  end
58
58
 
59
59
  def default_region
@@ -232,8 +232,16 @@ module Ironfan
232
232
  super
233
233
  end
234
234
 
235
+ def keypair_name
236
+ full_cluster_name
237
+ end
238
+
239
+ def full_cluster_name
240
+ "#{realm_name}-#{cluster_name}"
241
+ end
242
+
235
243
  def full_name
236
- "#{realm_name}-#{cluster_name}-#{facet_name}-#{name}"
244
+ "#{full_cluster_name}-#{facet_name}-#{name}"
237
245
  end
238
246
  def host_name() full_name.gsub('_','-'); end;
239
247
  def fqdn() [self.host_name, self.dns_domain].compact.join("."); end
@@ -51,7 +51,7 @@ module Ironfan
51
51
 
52
52
  def self.prepare!(computers)
53
53
  return if computers.empty?
54
- name = computers.values[0].server.cluster_name
54
+ name = computers.values[0].server.keypair_name
55
55
  return if recall? name
56
56
  Ironfan.step(name, "creating key pair for #{name}", :blue)
57
57
  result = Ec2.connection.create_key_pair(name)
@@ -103,7 +103,7 @@ module Ironfan
103
103
  end
104
104
 
105
105
  def ssh_key
106
- keypair = cloud.keypair || computer.server.cluster_name
106
+ keypair = cloud.keypair || computer.server.keypair_name
107
107
  end
108
108
 
109
109
  def to_s
@@ -51,7 +51,7 @@ module Ironfan
51
51
 
52
52
  def self.prepare!(computers)
53
53
  return if computers.empty?
54
- name = computers.values[0].server.cluster_name
54
+ name = computers.values[0].server.keypair_name
55
55
  return if recall? name
56
56
  Ironfan.step(name, "creating key pair for #{name}", :blue)
57
57
  result = OpenStack.connection.create_key_pair(name)
@@ -134,7 +134,7 @@ module Ironfan
134
134
  end
135
135
 
136
136
  def ssh_key
137
- keypair = cloud.keypair || computer.server.cluster_name
137
+ keypair = cloud.keypair || computer.server.keypair_name
138
138
  end
139
139
 
140
140
  def private_ip_address
@@ -1,3 +1,3 @@
1
1
  module Ironfan
2
- VERSION = '6.0.3'
2
+ VERSION = '6.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-19 00:00:00.000000000 Z
12
+ date: 2014-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -318,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
318
318
  version: '0'
319
319
  segments:
320
320
  - 0
321
- hash: 1692087169834386324
321
+ hash: -4288097787655203651
322
322
  required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  none: false
324
324
  requirements:
@@ -327,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  version: '0'
328
328
  segments:
329
329
  - 0
330
- hash: 1692087169834386324
330
+ hash: -4288097787655203651
331
331
  requirements: []
332
332
  rubyforge_project:
333
333
  rubygems_version: 1.8.25