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 +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +3 -3
- data/lib/chef/provider/load_balancer.rb +9 -6
- data/lib/chef/provisioning/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e83e4f20ff02af375d7503eb293704311fb372
|
4
|
+
data.tar.gz: ff6cb7c0d6fc91b1789c778a01373215fbfe60a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 106cd2fb4ec6f4018c6d86fe80625b759ab4c2462e48c742eb5800cb81b073cf1909b61b530448660a3957af9e9d1b047ab061c47b88fa3ad267f45821227962
|
7
|
+
data.tar.gz: 9e6508184546da1c3bd093445f81173e20fa43afa3c266a29f979efd696b5aeaafc886a84504388eafda6ac66d7b8a582ca9e1c7a4f1635edd05734997368e7d
|
data/CHANGELOG.md
CHANGED
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-
|
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
|
15
|
-
12/20/2013 | [Chef
|
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.
|
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
|
25
|
-
Chef::Provisioning::ChefLoadBalancerSpec.empty(new_resource.name
|
24
|
+
lb_spec = Chef::Provisioning::ChefLoadBalancerSpec.get(new_resource.name) ||
|
25
|
+
Chef::Provisioning::ChefLoadBalancerSpec.empty(new_resource.name)
|
26
26
|
|
27
|
-
|
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
|
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::
|
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
|
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.
|
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-
|
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
|