ironfan 6.1.4 → 6.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,6 +46,10 @@ module Ironfan
46
46
  name
47
47
  end
48
48
 
49
+ def full_cluster_name
50
+ full_name
51
+ end
52
+
49
53
  def full_name
50
54
  "#{realm_name}-#{name}"
51
55
  end
@@ -110,7 +110,7 @@ module Ironfan
110
110
  discovery = {discovers: keys.reverse.inject(compute.realm_name){|hsh,key| {key => hsh}}}
111
111
  (compute.facet_role || compute.cluster_role).override_attributes(discovery)
112
112
 
113
- client_group_v = compute.full_name
113
+ client_group_v = compute.full_cluster_name
114
114
  server_group_v = "#{realm_name}-#{server_cluster}"
115
115
 
116
116
  group_edge(compute, client_group_v, :authorized_by_group, server_group_v)
@@ -27,8 +27,12 @@ module Ironfan
27
27
  servers.to_a + components.to_a
28
28
  end
29
29
 
30
+ def full_cluster_name
31
+ "#{realm_name}-#{cluster_name}"
32
+ end
33
+
30
34
  def full_name
31
- "#{realm_name}-#{cluster_name}-#{name}"
35
+ "#{full_cluster_name}-#{name}"
32
36
  end
33
37
  end
34
38
  end
@@ -209,8 +209,6 @@ module Ironfan
209
209
  server.security_group computer.server.realm_name
210
210
  realm_group = server.security_group cluster_name
211
211
  realm_group.authorized_by_group realm_group.name
212
- facet_name = "#{computer.server.realm_name}-#{computer.server.cluster_name}-#{computer.server.facet_name}"
213
- server.security_group facet_name
214
212
  end
215
213
 
216
214
  # Try an authorization, ignoring duplicates (this is easier than correlating).
@@ -192,8 +192,6 @@ module Ironfan
192
192
  server.security_group computer.server.realm_name
193
193
  realm_group = server.security_group cluster_name
194
194
  realm_group.authorized_by_group realm_group.name
195
- facet_name = "#{computer.server.realm_name}-#{computer.server.cluster_name}-#{computer.server.facet_name}"
196
- server.security_group facet_name
197
195
  end
198
196
 
199
197
  # Try an authorization, ignoring duplicates (this is easier than correlating).
@@ -1,3 +1,3 @@
1
1
  module Ironfan
2
- VERSION = '6.1.4'
2
+ VERSION = '6.1.5'
3
3
  end
@@ -197,7 +197,7 @@ describe Ironfan::Dsl::Component do
197
197
  end
198
198
 
199
199
  it 'correctly sets the server cluster even when the client and server facets differ' do
200
- bam_wak_group = Ironfan.realm(:wap).cluster(:bam).facet(:wak).security_group('wap-bam-wak')
200
+ bam_wak_group = Ironfan.realm(:wap).cluster(:bam).facet(:wak).security_group('wap-bam')
201
201
  bam_wak_group.group_authorized_by.should include('wap-bop')
202
202
  end
203
203
 
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.1.4
4
+ version: 6.1.5
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-04-22 00:00:00.000000000 Z
12
+ date: 2014-04-24 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: -810128276045703285
321
+ hash: -1549978331265274060
322
322
  required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  none: false
324
324
  requirements:
@@ -327,10 +327,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  version: '0'
328
328
  segments:
329
329
  - 0
330
- hash: -810128276045703285
330
+ hash: -1549978331265274060
331
331
  requirements: []
332
332
  rubyforge_project:
333
- rubygems_version: 1.8.23
333
+ rubygems_version: 1.8.25
334
334
  signing_key:
335
335
  specification_version: 3
336
336
  summary: Infochimps' lightweight cloud orchestration toolkit, built on top of Chef.