hiera 3.4.6 → 3.5.0
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/README.md +2 -1
- data/bin/hiera +0 -18
- data/lib/hiera/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a11abe3f60206cf591c4782fc9052754cab03fb89a8b61320a3388ddf5462e5d
|
4
|
+
data.tar.gz: cecff2f3af889e4815bcf36e033f593e5898b9b212ee542210d204d6ecf70e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d71947840b738c5afc8025725cf6212fa9921b161e83bc30f691cf8819eff2fdfc42c65215ab2d19a6de4ebdab7adde6db8e486d73f3ec40a7db3b69826ed87
|
7
|
+
data.tar.gz: 02f4512f6084fe13903b40eefaf150703a0a5b01eaf07ce1726d0ad8379f6909b35963f2f02bbce6afc21111f90f6aadbbff68805b13e8a7e208e2fb78be835a
|
data/README.md
CHANGED
data/bin/hiera
CHANGED
@@ -41,24 +41,6 @@ initial_scopes = Array.new
|
|
41
41
|
# Loads the scope from YAML or JSON files
|
42
42
|
def load_scope(source, type=:yaml)
|
43
43
|
case type
|
44
|
-
when :mcollective
|
45
|
-
begin
|
46
|
-
require 'mcollective'
|
47
|
-
|
48
|
-
include MCollective::RPC
|
49
|
-
|
50
|
-
util = rpcclient("rpcutil")
|
51
|
-
util.progress = false
|
52
|
-
nodestats = util.custom_request("inventory", {}, source, {"identity" => source}).first
|
53
|
-
|
54
|
-
raise "Failed to retrieve facts for node #{source}: #{nodestats[:statusmsg]}" unless nodestats[:statuscode] == 0
|
55
|
-
|
56
|
-
scope = nodestats[:data][:facts]
|
57
|
-
rescue Exception => e
|
58
|
-
STDERR.puts "MCollective lookup failed: #{e.class}: #{e}"
|
59
|
-
exit 1
|
60
|
-
end
|
61
|
-
|
62
44
|
when :yaml
|
63
45
|
raise "Cannot find scope #{type} file #{source}" unless File.exist?(source)
|
64
46
|
|
data/lib/hiera/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A pluggable data store for hierarcical data
|
14
14
|
email: info@puppetlabs.com
|