hiera-multiyaml 0.0.2 → 0.0.3
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/hiera/backend/multiyaml_backend.rb +2 -2
- 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: abc795e8f6eccef3a2bda776afe157bb1db835ab
|
|
4
|
+
data.tar.gz: 46692e10524d79e6502b2724df62380a6e19a2ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: baf04fdab5a8e60527b956b0d4d4d8e80611fa25ac3c6c1721ec5d5531f720ac68d0459ce17f96050c42bed451d96ae4c9a412b65ec5887356e0611af7e5cb7a
|
|
7
|
+
data.tar.gz: d170bf3eaea1e8edeaebc4086009f66886d46bc365231ca9092c0f50f733711c6c2c255443e654b47ca472d5ece84144151854887e2a6f93c6775d5295a3b867
|
|
@@ -23,7 +23,7 @@ class Hiera
|
|
|
23
23
|
Hiera.debug("MultiYAML: Starting with backend #{backend}")
|
|
24
24
|
#Backend.datasourcefiles(:yaml, scope, "yaml", order_override) do |source, yamlfile|
|
|
25
25
|
Backend.datasources(scope, order_override) do |source|
|
|
26
|
-
Hiera.debug("MultiYAML: Looking for data source #{source} in MultiYAML #{backend}")
|
|
26
|
+
Hiera.debug("MultiYAML: Looking for key #{key} data source #{source} in MultiYAML #{backend}")
|
|
27
27
|
yamlfile = Backend.parse_answer(File.join(Config[backend][:datadir], "#{source}.yaml"), scope)
|
|
28
28
|
Hiera.debug("MultiYAML: Overriding yamlfile variable with #{yamlfile}")
|
|
29
29
|
|
|
@@ -44,7 +44,7 @@ class Hiera
|
|
|
44
44
|
|
|
45
45
|
new_answer = Backend.parse_answer(data[key], scope)
|
|
46
46
|
answer = merge_answer(resolution_type, new_answer, answer)
|
|
47
|
-
if resolution_type == :priority
|
|
47
|
+
if resolution_type == :priority || resolution_type.nil?
|
|
48
48
|
break
|
|
49
49
|
end
|
|
50
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hiera-multiyaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- denise stockman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Multiple yaml backend for Puppet
|
|
14
14
|
email: denise@stockmans.org
|