chef-metal 0.12 → 0.12.1
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 -0
- data/lib/chef/provider/machine_batch.rb +1 -1
- data/lib/chef_metal/recipe_dsl.rb +5 -4
- data/lib/chef_metal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73917076444ad1bda8ffa1d5b3a2d44c6f13e401
|
4
|
+
data.tar.gz: 04f07c5b3d36891a3c961b1d8effd2154e34f71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102130f0959c12ce7c6b22d3d1ef15bd30aed149301af19db398d83bc4eba212fe7aceda10d2c27232e65f4c5fe341787d49a4703fe2a3c693f91564c8245f1a
|
7
|
+
data.tar.gz: 6c2a7613ddd0da1090402c152579fde5de9279204ddd06a477e6c5d0e2fcd1b1cd4d342f99a84d32a7edce9c8281733aed233c9327c20879f7673df3f97ae585
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Chef Metal Changelog
|
2
2
|
|
3
|
+
## 0.12.1 (6/18/2014)
|
4
|
+
|
5
|
+
- fix machine_batch action :setup
|
6
|
+
- fix issue with default machine_batch names being non-unique across recipes
|
7
|
+
|
3
8
|
## 0.12 (6/18/2014)
|
4
9
|
|
5
10
|
- Remove chef-metal-fog and chef-metal-vagrant as dependencies (install whatever things you want directly!)
|
@@ -38,7 +38,7 @@ class Chef::Provider::MachineBatch < Chef::Provider::LWRPBase
|
|
38
38
|
action :setup do
|
39
39
|
with_ready_machines do |m|
|
40
40
|
prefixed_handler = ChefMetal::AddPrefixActionHandler.new(action_handler, "[#{m[:spec].name}] ")
|
41
|
-
|
41
|
+
m[:machine].setup_convergence(prefixed_handler)
|
42
42
|
m[:spec].save(prefixed_handler)
|
43
43
|
Chef::Provider::Machine.upload_files(prefixed_handler, m[:machine], m[:files])
|
44
44
|
end
|
@@ -39,14 +39,15 @@ class Chef
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
@@next_machine_batch_index = 1
|
43
|
+
|
42
44
|
def machine_batch_default_name
|
43
|
-
if
|
44
|
-
|
45
|
-
"default#{@machine_batch_index}"
|
45
|
+
if @@next_machine_batch_index > 1
|
46
|
+
"default#{@@next_machine_batch_index}"
|
46
47
|
else
|
47
|
-
@machine_batch_index = 0
|
48
48
|
"default"
|
49
49
|
end
|
50
|
+
@@next_machine_batch_index += 1
|
50
51
|
end
|
51
52
|
|
52
53
|
def machine_batch(name = nil, &block)
|
data/lib/chef_metal/version.rb
CHANGED