knife-topo 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chef/knife/topo/processor/via_cookbook.rb +2 -1
- data/lib/chef/knife/topo/version.rb +1 -1
- data/lib/chef/topology.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ad82c95351c67f014a35a6d088bb972750215f
|
4
|
+
data.tar.gz: da4b9da927c3be0125e1b8826de6ce133cf3d8eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf39e70c36e93c6254c45ecbe850fa1dcc9b3996d96222324ba0dd40e60a7b1f7017480abdeffe8da993f3d2a0befcaf533eed54ebb9c48a8714cfe7247b0bd
|
7
|
+
data.tar.gz: b34b279781e5cfb2e93df9c52bb29eedf843473c3de2d7faf83f12484bea9ac7936f35332fd8e2be0ddfdc17b3254715c16bca0132b8310244a6651c4a236769
|
@@ -91,7 +91,8 @@ module KnifeTopo
|
|
91
91
|
def cookbook_path
|
92
92
|
paths = @config['cookbook_path']
|
93
93
|
return unless paths
|
94
|
-
|
94
|
+
# cookbook path can be an array or a string
|
95
|
+
paths.is_a?(Array) ? (paths.first || './cookbooks') : paths
|
95
96
|
end
|
96
97
|
|
97
98
|
def upload_artifacts(context = {})
|
data/lib/chef/topology.rb
CHANGED
@@ -56,7 +56,7 @@ class Chef
|
|
56
56
|
def raw_data=(new_data)
|
57
57
|
@strategy = new_data['strategy'] || 'direct_to_node'
|
58
58
|
new_data['id'] ||= (new_data['name'] || 'undefined')
|
59
|
-
|
59
|
+
new_data['name'] ||= (new_data['id'])
|
60
60
|
new_data['nodes'] ||= []
|
61
61
|
super(normalize(new_data))
|
62
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-topo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christine Draper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Knife-topo uses a JSON file to capture a topology of nodes, which can
|
14
14
|
be loaded into Chef and bootstrapped
|