chef-provisioning 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52773ee7d1545b36547f9008be859d5f05404671
4
- data.tar.gz: b40a4c4ae8bed459857357a49fd52b880afd12dc
3
+ metadata.gz: 03e83e4f20ff02af375d7503eb293704311fb372
4
+ data.tar.gz: ff6cb7c0d6fc91b1789c778a01373215fbfe60a7
5
5
  SHA512:
6
- metadata.gz: 30562e3b3645ac5affe0a7fbf67cf712a893973c510b8bee099113085272e83b2b5d7ec5fe780dbde15aeebbf23d2fa02225040b7915fffae98ad63886cc68fb
7
- data.tar.gz: bd6b8ffe204ab84fbcfe22f36a920105f690ec7ca06369e236b6d4b4286b7e1b24e04f4b6decd6cff98a61f6a2a9f1e6462236b4b2eeb6c46cfb63c1e2141117
6
+ metadata.gz: 106cd2fb4ec6f4018c6d86fe80625b759ab4c2462e48c742eb5800cb81b073cf1909b61b530448660a3957af9e9d1b047ab061c47b88fa3ad267f45821227962
7
+ data.tar.gz: 9e6508184546da1c3bd093445f81173e20fa43afa3c266a29f979efd696b5aeaafc886a84504388eafda6ac66d7b8a582ca9e1c7a4f1635edd05734997368e7d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # Chef Metal Changelog
1
+ # Chef Provisioning Changelog
2
+ ## 0.15.2 (11/4/2014)
3
+
4
+ - Remove Chef as a dependency so that it can be a dep of Chef
5
+
2
6
  ## 0.15.1 (10/30/2014)
3
7
 
4
8
  - Make syntax error go away, grr.
data/README.md CHANGED
@@ -5,14 +5,14 @@ Chef Provisioning
5
5
 
6
6
  This library solves the problem of repeatably creating machines and infrastructures in Chef. It has a plugin model that lets you write bootstrappers for your favorite infrastructures, including VirtualBox, EC2, LXC, bare metal, and many more!
7
7
 
8
- [This video](https://www.youtube.com/watch?v=Yb8QdL30WgM) explains the basics of chef-provisioning (though provisioners are now called drivers). Slides (more up to date) are [here](http://slides.com/jkeiser/chef-provisioning).
8
+ [This video](https://www.youtube.com/watch?v=Yb8QdL30WgM) explains the basics of chef-provisioning (though provisioners are now called drivers). Slides (more up to date) are [here](http://slides.com/jkeiser/chef-metal).
9
9
 
10
10
  Date | Blog
11
11
  -----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------
12
12
  6/3/2014 | [machine_batch and parallelization](https://github.com/opscode/chef-provisioning/blob/master/docs/blogs/2012-05-28-machine_batch.html.markdown#chef-provisioning-parallelization)
13
13
  6/3/2014 | [Chef Provisioning, Configuration and Drivers](https://github.com/opscode/chef-provisioning/blob/master/docs/blogs/2012-05-22-new-driver-interface.html.markdown#chef-provisioning-configuration-and-drivers)
14
- 3/4/2014 | [Chef Provisioning 0.2: Overview](http://www.getchef.com/blog/2014/03/04/chef-provisioning-0-2-release/) - this is a pretty good overview (though dated).
15
- 12/20/2013 | [Chef Provisioning Alpha](http://www.getchef.com/blog/2013/12/20/chef-provisioning-alpha/)
14
+ 3/4/2014 | [Chef Metal 0.2: Overview](http://www.getchef.com/blog/2014/03/04/chef-metal-0-2-release/) - this is a pretty good overview (though dated).
15
+ 12/20/2013 | [Chef Metal Alpha](http://www.getchef.com/blog/2013/12/20/chef-metal-alpha/)
16
16
 
17
17
  Documentation
18
18
  -------------
@@ -17,14 +17,15 @@ class Chef
17
17
  end
18
18
 
19
19
  def new_driver
20
- @new_driver ||= run_context.chef_provisioning.driver_for(new_resource.driver)
20
+ @new_driver ||= run_context.chef_metal.driver_for(new_resource.driver)
21
21
  end
22
22
 
23
23
  action :create do
24
- lb_spec = Chef::Provisioning::ChefLoadBalancerSpec.get(new_resource.name, new_resource.chef_server) ||
25
- Chef::Provisioning::ChefLoadBalancerSpec.empty(new_resource.name, new_resource.chef_server)
24
+ lb_spec = Chef::Provisioning::ChefLoadBalancerSpec.get(new_resource.name) ||
25
+ Chef::Provisioning::ChefLoadBalancerSpec.empty(new_resource.name)
26
26
 
27
- if lb_spec.location
27
+ Chef::Log.debug "Creating load balancer: #{new_resource.name}; loaded #{lb_spec.inspect}"
28
+ if lb_spec.load_balancer_options
28
29
  # Updating
29
30
  update_loadbalancer(lb_spec)
30
31
  else
@@ -35,7 +36,7 @@ class Chef
35
36
  end
36
37
 
37
38
  action :destroy do
38
- lb_spec = Chef::Provisioning::ChefLoadBalancerSpec.get(new_resource.name, new_resource.chef_server)
39
+ lb_spec = Chef::Provisioning::ChefLoadBalancerSpec.get(new_resource.name)
39
40
  new_driver.destroy_load_balancer(@action_handler, lb_spec, lb_options)
40
41
  end
41
42
 
@@ -43,6 +44,7 @@ class Chef
43
44
 
44
45
 
45
46
  def update_loadbalancer(lb_spec)
47
+ Chef::Log.debug "Updating load balancer: #{lb_spec.id}"
46
48
  machines = Hash[
47
49
  *(new_resource.machines).collect {
48
50
  |machine_name| [machine_name, get_machine_spec(machine_name)]
@@ -65,7 +67,8 @@ class Chef
65
67
 
66
68
  private
67
69
  def get_machine_spec(machine_name)
68
- Chef::Provisioning::ChefMachineSpec.get(machine_name, new_resource.chef_server)
70
+ Chef::Log.debug "Getting machine spec for #{machine_name}"
71
+ Chef::Provisioning::ChefMachineSpec.get(machine_name)
69
72
  end
70
73
 
71
74
  def lb_options
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '0.15.1'
3
+ VERSION = '0.15.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: chef
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: net-ssh
29
15
  requirement: !ruby/object:Gem::Requirement