quixoten-puppetdb-terminus 2.2.0 → 2.2.1
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/puppet/face/node/deactivate.rb +0 -1
- data/lib/puppet/face/node/status.rb +0 -2
- data/lib/puppet/face/storeconfigs.rb +0 -2
- data/lib/puppet/indirector/catalog/puppetdb.rb +0 -5
- data/lib/puppet/indirector/facts/puppetdb.rb +0 -5
- data/lib/puppet/indirector/node/puppetdb.rb +0 -5
- data/lib/puppet/indirector/resource/puppetdb.rb +0 -5
- data/lib/puppet/reports/puppetdb.rb +1 -2
- data/lib/puppet/util/puppetdb.rb +0 -1
- data/lib/puppetdb/terminus/version.rb +1 -1
- metadata +2 -3
- data/lib/puppet/util/puppetdb/global_check.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7e99f5f9a86df48b79fc6897da9182c87472467
|
4
|
+
data.tar.gz: 7113fda1ad952aedf5697b70ccd9450190bed097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7cad8a406fec6f2ac4d8d9359d820c0714b8e9154fe7f7d443b32ef502f269a4b15f5302436a08b5c8e94fcd82b36e04d38bb33a887ceb44cc5e0e6dcaf4742
|
7
|
+
data.tar.gz: 2024807daa7da4efd3f37de5211b989afd8c1867e9d60f66e42785cbf63ee63153d0c1212f25c05ee8251c9e0ae9d44c0d7a959df2d3921d7ce54c638f64a2f0
|
@@ -7,11 +7,6 @@ class Puppet::Resource::Catalog::Puppetdb < Puppet::Indirector::REST
|
|
7
7
|
include Puppet::Util::Puppetdb
|
8
8
|
include Puppet::Util::Puppetdb::CommandNames
|
9
9
|
|
10
|
-
# Run initial checks
|
11
|
-
def initialize
|
12
|
-
Puppet::Util::Puppetdb::GlobalCheck.run
|
13
|
-
end
|
14
|
-
|
15
10
|
def save(request)
|
16
11
|
profile "catalog#save" do
|
17
12
|
catalog = munge_catalog(request.instance, extract_extra_request_data(request))
|
@@ -9,11 +9,6 @@ class Puppet::Node::Facts::Puppetdb < Puppet::Indirector::REST
|
|
9
9
|
include Puppet::Util::Puppetdb
|
10
10
|
include Puppet::Util::Puppetdb::CommandNames
|
11
11
|
|
12
|
-
# Run initial checks
|
13
|
-
def initialize
|
14
|
-
Puppet::Util::Puppetdb::GlobalCheck.run
|
15
|
-
end
|
16
|
-
|
17
12
|
def get_trusted_info(node)
|
18
13
|
trusted = Puppet.lookup(:trusted_information) do
|
19
14
|
Puppet::Context::TrustedInformation.local(request.node)
|
@@ -6,11 +6,6 @@ require 'uri'
|
|
6
6
|
class Puppet::Resource::Puppetdb < Puppet::Indirector::REST
|
7
7
|
include Puppet::Util::Puppetdb
|
8
8
|
|
9
|
-
# Run initial checks
|
10
|
-
def initialize
|
11
|
-
Puppet::Util::Puppetdb::GlobalCheck.run
|
12
|
-
end
|
13
|
-
|
14
9
|
def search(request)
|
15
10
|
profile "resource#search" do
|
16
11
|
type = request.key
|
@@ -5,8 +5,6 @@ require 'puppet/util/puppetdb/command_names'
|
|
5
5
|
Puppet::Reports.register_report(:puppetdb) do
|
6
6
|
include Puppet::Util::Puppetdb
|
7
7
|
|
8
|
-
Puppet::Util::Puppetdb::GlobalCheck.run
|
9
|
-
|
10
8
|
CommandStoreReport = Puppet::Util::Puppetdb::CommandNames::CommandStoreReport
|
11
9
|
|
12
10
|
desc <<-DESC
|
@@ -126,6 +124,7 @@ Puppet::Reports.register_report(:puppetdb) do
|
|
126
124
|
"message" => nil,
|
127
125
|
"file" => resource_status.file,
|
128
126
|
"line" => resource_status.line,
|
127
|
+
"containment-path" => resource_status.containment_path,
|
129
128
|
}
|
130
129
|
end
|
131
130
|
|
data/lib/puppet/util/puppetdb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quixoten-puppetdb-terminus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devin Christensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,7 +66,6 @@ files:
|
|
66
66
|
- lib/puppet/util/puppetdb/command.rb
|
67
67
|
- lib/puppet/util/puppetdb/command_names.rb
|
68
68
|
- lib/puppet/util/puppetdb/config.rb
|
69
|
-
- lib/puppet/util/puppetdb/global_check.rb
|
70
69
|
- lib/puppetdb-terminus.rb
|
71
70
|
- lib/puppetdb/terminus.rb
|
72
71
|
- lib/puppetdb/terminus/version.rb
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'semver'
|
2
|
-
require 'puppet/version'
|
3
|
-
require 'puppet/error'
|
4
|
-
|
5
|
-
module Puppet::Util::Puppetdb
|
6
|
-
# Global checks for version support and other validations before the terminus
|
7
|
-
# is used.
|
8
|
-
#
|
9
|
-
class GlobalCheck
|
10
|
-
# Validate that the support for the version of Puppet we are running on is
|
11
|
-
# still maintained.
|
12
|
-
#
|
13
|
-
# @param minimum [String] minimum version for operation
|
14
|
-
# @throws [Puppet::Error] raised if current version is unsupported
|
15
|
-
# @api private
|
16
|
-
def self.puppet_version_check(minimum)
|
17
|
-
minimum_version = ::SemVer.new(minimum)
|
18
|
-
puppet_version = ::SemVer.new(Puppet.version)
|
19
|
-
if (puppet_version <=> minimum_version) == -1 then
|
20
|
-
raise Puppet::Error, "You are attempting to use puppetdb-terminus on an unsupported version of Puppet (#{puppet_version}) the minimum supported version is #{minimum_version}"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
# Run all checks
|
25
|
-
#
|
26
|
-
# @throws [Puppet::Error] raised for any validation errors
|
27
|
-
def self.run
|
28
|
-
self.puppet_version_check("3.5.1")
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|