ironfan 4.2.2 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v4.2.3
2
+ * Making aws_account_id unnecessary for security groups (its not needed by newer Fog)
3
+ * Removed redundant cloud_provider.rb (thanks @nickmarden)
4
+ * Use Chef::Node-friendly semantics for chef_environment (thanks @nickmarden)
5
+
1
6
  # v4.2.2: @mrflip rocks the house
2
7
  * Terminated machines are not bogus (fixes #165)
3
8
  * Ignore deleting, deleted, or errored volumes in discovery
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.2.2
1
+ 4.2.3
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.2.2"
8
+ s.version = "4.2.3"
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-01"
12
+ s.date = "2012-10-02"
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 = [
@@ -88,7 +88,6 @@ Gem::Specification.new do |s|
88
88
  "spec/fixtures/gunbai.rb",
89
89
  "spec/fixtures/gunbai_slice.json",
90
90
  "spec/ironfan/cluster_spec.rb",
91
- "spec/ironfan/ec2/cloud_provider.rb",
92
91
  "spec/ironfan/ec2/cloud_provider_spec.rb",
93
92
  "spec/ironfan/ec2/security_group_spec.rb",
94
93
  "spec/spec_helper.rb",
@@ -101,7 +100,7 @@ Gem::Specification.new do |s|
101
100
  s.require_paths = ["lib"]
102
101
  s.rubygems_version = "1.8.24"
103
102
  s.summary = "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."
104
- s.test_files = ["spec/spec_helper/dummy_chef.rb", "spec/ironfan/cluster_spec.rb", "spec/ironfan/ec2/cloud_provider_spec.rb", "spec/ironfan/ec2/security_group_spec.rb", "spec/ironfan/ec2/cloud_provider.rb", "spec/chef/cluster_bootstrap_spec.rb", "spec/fixtures/gunbai_slice.json", "spec/fixtures/gunbai.rb", "spec/spec_helper.rb", "spec/test_config.rb"]
103
+ s.test_files = ["spec/spec_helper/dummy_chef.rb", "spec/ironfan/cluster_spec.rb", "spec/ironfan/ec2/cloud_provider_spec.rb", "spec/ironfan/ec2/security_group_spec.rb", "spec/chef/cluster_bootstrap_spec.rb", "spec/fixtures/gunbai_slice.json", "spec/fixtures/gunbai.rb", "spec/spec_helper.rb", "spec/test_config.rb"]
105
104
 
106
105
  if s.respond_to? :specification_version then
107
106
  s.specification_version = 3
@@ -6,7 +6,7 @@ module Ironfan
6
6
  delegate :[], :[]=, :add_to_index, :apply_expansion_attributes,
7
7
  :attribute, :attribute=, :attribute?, :automatic_attrs,
8
8
  :automatic_attrs=, :cdb_destroy, :cdb_save, :chef_environment,
9
- :chef_environment=, :chef_server_rest, :class_from_file,
9
+ :chef_server_rest, :class_from_file,
10
10
  :construct_attributes, :consume_attributes,
11
11
  :consume_external_attrs, :consume_run_list, :cookbook_collection,
12
12
  :cookbook_collection=, :couchdb, :couchdb=, :couchdb_id,
@@ -64,9 +64,8 @@ module Ironfan
64
64
  def prepare_from(computer)
65
65
  organization = Chef::Config.organization
66
66
  normal[:organization] = organization unless organization.nil?
67
-
68
67
  server = computer.server
69
- chef_environment = server.environment
68
+ chef_environment(server.environment.to_s)
70
69
  run_list.instance_eval { @run_list_items = server.run_list }
71
70
  normal[:cluster_name] = server.cluster_name
72
71
  normal[:facet_name] = server.facet_name
@@ -95,14 +95,12 @@ module Ironfan
95
95
  dsl_groups.each do |dsl_group|
96
96
  dsl_group.group_authorized.each do |other_group|
97
97
  Ironfan.step(dsl_group.name, " ensuring access from #{other_group}", :blue)
98
- options = {:group => "#{Ec2.aws_account_id}:#{other_group}"}
99
- safely_authorize(dsl_group.name,1..65535,options)
98
+ safely_authorize(dsl_group.name, 1..65535, :group => other_group)
100
99
  end
101
100
 
102
101
  dsl_group.group_authorized_by.each do |other_group|
103
102
  Ironfan.step(dsl_group.name, " ensuring access to #{other_group}", :blue)
104
- options = {:group => "#{Ec2.aws_account_id}:#{dsl_group.name}"}
105
- safely_authorize(other_group,1..65535,options)
103
+ safely_authorize(other_group, 1..65535, :group => dsl_group.name)
106
104
  end
107
105
 
108
106
  dsl_group.range_authorizations.each do |range_auth|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 4.2.2
5
+ version: 4.2.3
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-01 00:00:00 Z
13
+ date: 2012-10-02 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: chef
@@ -214,7 +214,6 @@ files:
214
214
  - spec/fixtures/gunbai.rb
215
215
  - spec/fixtures/gunbai_slice.json
216
216
  - spec/ironfan/cluster_spec.rb
217
- - spec/ironfan/ec2/cloud_provider.rb
218
217
  - spec/ironfan/ec2/cloud_provider_spec.rb
219
218
  - spec/ironfan/ec2/security_group_spec.rb
220
219
  - spec/spec_helper.rb
@@ -234,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
233
  requirements:
235
234
  - - ">="
236
235
  - !ruby/object:Gem::Version
237
- hash: 3459217144726680577
236
+ hash: 4307969691364696392
238
237
  segments:
239
238
  - 0
240
239
  version: "0"
@@ -256,7 +255,6 @@ test_files:
256
255
  - spec/ironfan/cluster_spec.rb
257
256
  - spec/ironfan/ec2/cloud_provider_spec.rb
258
257
  - spec/ironfan/ec2/security_group_spec.rb
259
- - spec/ironfan/ec2/cloud_provider.rb
260
258
  - spec/chef/cluster_bootstrap_spec.rb
261
259
  - spec/fixtures/gunbai_slice.json
262
260
  - spec/fixtures/gunbai.rb
@@ -1,35 +0,0 @@
1
- require 'spec_helper'
2
-
3
- require 'ironfan'
4
-
5
- describe Ironfan::Dsl::Cluster do
6
- let (:cluster) do
7
- Ironfan.cluster "sparky" do
8
-
9
- cloud(:ec2) do
10
- security_group(:ssh).authorize_port_range 22..22
11
- flavor 't1.micro'
12
- end
13
-
14
- facet :web do
15
- instances 3
16
- end
17
-
18
- end
19
- end
20
-
21
- describe 'web facet server resolution' do
22
- before { @facet = cluster.facets.values.first }
23
- subject { @facet }
24
- its(:name) { should eql "web" }
25
-
26
- it 'should have the right number of servers' do
27
- @facet.servers.length.should == 3
28
- end
29
-
30
- it 'should have one cloud provider, EC2' do
31
- @facet.servers[0].clouds.keys.should == [ :ec2 ]
32
- end
33
- end
34
-
35
- end