chef-metal 0.11.2 → 0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +21 -6
- data/lib/chef_metal/chef_run_data.rb +9 -9
- data/lib/chef_metal/convergence_strategy/precreate_chef_objects.rb +1 -1
- data/lib/chef_metal/version.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a7515b106ed73e6422effeb0d2852898cdc6881
|
4
|
+
data.tar.gz: 3ea617d4302dad8f8b3578a07dc09b28aba3bcf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3b431067edb0ae001832ef82ddcf55e1e453a58b089a0df61c2722ef9ce6e75b4a0887c2a9b524534f20d54c8058c79e01326024491800e179eebf384c98254
|
7
|
+
data.tar.gz: 6faab0a7397d677e9c46fcc314f8efc8ee3067038ce92d69096822a1bc5afceaf0cb8d7232fa7d062769cfd8309d141ebd27e633f0866397f9c4d59d9237ca69
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Chef Metal Changelog
|
2
2
|
|
3
|
+
## 0.12 (6/18/2014)
|
4
|
+
|
5
|
+
- Remove chef-metal-fog and chef-metal-vagrant as dependencies (install whatever things you want directly!)
|
6
|
+
- Fix ssl_verify_mode to work correctly when other HTTPS calls are made (@mwrock)
|
7
|
+
- Fix machine_file and machine_execute resources (@irvingpop)
|
8
|
+
|
3
9
|
## 0.11.2 (6/4/2014)
|
4
10
|
|
5
11
|
- Fix issue where machines with different drivers could get default options from the global current driver
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Date | Blog
|
|
10
10
|
6/3/2014 | [machine_batch and parallelization](https://github.com/opscode/chef-metal/blob/master/docs/blogs/2012-05-28-machine_batch.html.markdown#chef-metal-parallelization)
|
11
11
|
6/3/2014 | [Chef Metal, Configuration and Drivers](https://github.com/opscode/chef-metal/blob/master/docs/blogs/2012-05-22-new-driver-interface.html.markdown#chef-metal-configuration-and-drivers)
|
12
12
|
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).
|
13
|
-
12/20/
|
13
|
+
12/20/2013 | [Chef Metal Alpha](http://www.getchef.com/blog/2013/12/20/chef-metal-alpha/)
|
14
14
|
|
15
15
|
Try It Out
|
16
16
|
----------
|
@@ -24,7 +24,7 @@ HINT: chef-metal looks prettiest with chef 11.14 alpha. `gem install chef --pre
|
|
24
24
|
To give it a spin, install Vagrant and VirtualBox and try this from the `chef-metal/docs/examples` directory:
|
25
25
|
|
26
26
|
```
|
27
|
-
gem install chef-metal
|
27
|
+
gem install chef-metal chef-metal-vagrant
|
28
28
|
export CHEF_DRIVER=vagrant
|
29
29
|
chef-client -z vagrant_linux.rb simple.rb
|
30
30
|
```
|
@@ -36,13 +36,29 @@ This will create two vagrant precise64 linux boxes, "mario" and "luigi1", in `~/
|
|
36
36
|
If you have an AWS account, you can spin up a machine there like this:
|
37
37
|
|
38
38
|
```
|
39
|
-
gem install chef-metal
|
39
|
+
gem install chef-metal chef-metal-fog
|
40
40
|
export CHEF_DRIVER=fog:AWS
|
41
41
|
chef-client -z simple.rb
|
42
42
|
```
|
43
43
|
|
44
44
|
This will create two linux boxes in the AWS account referenced by your default profile in `~/.aws/config` (or your environment variables).
|
45
45
|
|
46
|
+
### DigitalOcean
|
47
|
+
|
48
|
+
If you are on DigitalOcean and using the `tugboat` gem, you can do this:
|
49
|
+
|
50
|
+
```
|
51
|
+
gem install chef-metal chef-metal-fog
|
52
|
+
export CHEF_DRIVER=fog:DigitalOcean
|
53
|
+
chef-client -z simple.rb
|
54
|
+
```
|
55
|
+
|
56
|
+
If you aren't using the `tugboat` gem, you can put `driver` and `driver_options` into your `.chef/knife.rb` file.
|
57
|
+
|
58
|
+
This will use your tugboat settings to create whatever sort of instance you normally create.
|
59
|
+
|
60
|
+
### Cleaning up
|
61
|
+
|
46
62
|
When you are done with the examples, run this to clean up:
|
47
63
|
|
48
64
|
```
|
@@ -52,7 +68,7 @@ chef-client -z destroy_all.rb
|
|
52
68
|
What Is Chef Metal?
|
53
69
|
-------------------
|
54
70
|
|
55
|
-
Chef Metal has two major abstractions: the machine resource,
|
71
|
+
Chef Metal has two major abstractions: the machine resource, and drivers.
|
56
72
|
|
57
73
|
### The `machine` resource
|
58
74
|
|
@@ -183,7 +199,7 @@ with_machine_options :bootstrap_options => {
|
|
183
199
|
|
184
200
|
You will notice that we are still using `simple.rb` here. Machine definitions are generally driver-independent. This is an important feature that allows you to spin up your clusters in different places to create staging, test or miniature dev environments.
|
185
201
|
|
186
|
-
### Pointing Boxes at Servers
|
202
|
+
### Pointing Boxes at Chef Servers
|
187
203
|
|
188
204
|
By default, Chef Metal will put your boxes on the same Chef server you started chef-client with (in the case of -z, that's a local chef-zero server). Sometimes you want to put your boxes on different servers. There are a couple of ways to do that:
|
189
205
|
|
@@ -218,4 +234,3 @@ Bugs and The Plan
|
|
218
234
|
Please submit bugs, gripes and feature requests at [https://github.com/opscode/chef-metal/issues](https://twitter.com/jkeiser2), contact jkeiser on Twitter at @jkeiser2, email at [jkeiser@getchef.com](mailto:jkeiser@getchef.com)
|
219
235
|
|
220
236
|
To contribute, just make a PR in the appropriate repo--also, make sure you've [signed the Chef Contributor License Agreement](https://secure.echosign.com/public/hostedForm?formid=PJIF5694K6L) (quick couple of minutes online), since this is going into core Chef eventually. It takes some time to process, so if you've just done it, let me know in the PR :) If you already signed this for a Chef contribution, you don't need to do so again--if you're not sure, you can check for your name [here](https://wiki.opscode.com/display/chef/Approved+Contributors)!
|
221
|
-
Â
|
@@ -57,6 +57,15 @@ module ChefMetal
|
|
57
57
|
driver.is_a?(String) ? driver_for_url(driver) : driver
|
58
58
|
end
|
59
59
|
|
60
|
+
def connect_to_machine(name, chef_server = nil)
|
61
|
+
if name.is_a?(MachineSpec)
|
62
|
+
machine_spec = name
|
63
|
+
else
|
64
|
+
machine_spec = ChefMetal::ChefMachineSpec.get(name, chef_server)
|
65
|
+
end
|
66
|
+
ChefMetal.connect_to_machine(machine_spec, config)
|
67
|
+
end
|
68
|
+
|
60
69
|
private
|
61
70
|
|
62
71
|
def driver_for_url(driver_url)
|
@@ -80,15 +89,6 @@ module ChefMetal
|
|
80
89
|
end
|
81
90
|
end
|
82
91
|
|
83
|
-
def connect_to_machine(name, chef_server = nil)
|
84
|
-
if name.is_a?(MachineSpec)
|
85
|
-
machine_spec = name
|
86
|
-
else
|
87
|
-
machine_spec = ChefMetal::ChefMachineSpec.get(name, chef_server)
|
88
|
-
end
|
89
|
-
ChefMetal.connect_to_machine(machine_spec, config)
|
90
|
-
end
|
91
|
-
|
92
92
|
def keys
|
93
93
|
result = (config.keys || {}).dup
|
94
94
|
Array(config.key_path) do |key_path|
|
data/lib/chef_metal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-metal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.12'
|
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-06-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -94,34 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.5'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: chef-metal-fog
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.5'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.5'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: chef-metal-vagrant
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.4'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.4'
|
125
97
|
- !ruby/object:Gem::Dependency
|
126
98
|
name: rspec
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|