ironfan 6.0.3 → 6.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ironfan/dsl/ec2.rb +1 -1
- data/lib/ironfan/dsl/openstack.rb +1 -1
- data/lib/ironfan/dsl/server.rb +9 -1
- data/lib/ironfan/provider/ec2/keypair.rb +1 -1
- data/lib/ironfan/provider/ec2/machine.rb +1 -1
- data/lib/ironfan/provider/openstack/keypair.rb +1 -1
- data/lib/ironfan/provider/openstack/machine.rb +1 -1
- data/lib/ironfan/version.rb +1 -1
- metadata +4 -4
data/lib/ironfan/dsl/ec2.rb
CHANGED
data/lib/ironfan/dsl/server.rb
CHANGED
@@ -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
|
-
"#{
|
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.
|
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)
|
@@ -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.
|
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)
|
data/lib/ironfan/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
330
|
+
hash: -4288097787655203651
|
331
331
|
requirements: []
|
332
332
|
rubyforge_project:
|
333
333
|
rubygems_version: 1.8.25
|