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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b8ac64ec0646cb863eb8ff02d7d836fa72ae388
4
- data.tar.gz: 391e0dca5929e6f08884327cd6da5fee22dc9e33
3
+ metadata.gz: c7e99f5f9a86df48b79fc6897da9182c87472467
4
+ data.tar.gz: 7113fda1ad952aedf5697b70ccd9450190bed097
5
5
  SHA512:
6
- metadata.gz: 78020e2b1c69634080fbae981f83f0ded959d66c63415ef73808d6325c45ae0ddca7d40af0e1f0e1b3bf9bb9dd3e9e915d7817466c7947bb988d934ad8621895
7
- data.tar.gz: b72efd6f4dbe6ee0a1b289062cdc6f6ebc0eb965762d48666263897fb8c3884f2f7865daef4f1121e1fe34f21339aa5f80446021defc84d75c97ec8295826b8c
6
+ metadata.gz: d7cad8a406fec6f2ac4d8d9359d820c0714b8e9154fe7f7d443b32ef502f269a4b15f5302436a08b5c8e94fcd82b36e04d38bb33a887ceb44cc5e0e6dcaf4742
7
+ data.tar.gz: 2024807daa7da4efd3f37de5211b989afd8c1867e9d60f66e42785cbf63ee63153d0c1212f25c05ee8251c9e0ae9d44c0d7a959df2d3921d7ce54c638f64a2f0
@@ -16,7 +16,6 @@ Puppet::Face.define(:node, '0.0.1') do
16
16
  DESC
17
17
 
18
18
  when_invoked do |*args|
19
- Puppet::Util::Puppetdb::GlobalCheck.run
20
19
 
21
20
  opts = args.pop
22
21
  raise ArgumentError, "Please provide at least one node for deactivation" if args.empty?
@@ -14,8 +14,6 @@ Puppet::Face.define(:node, '0.0.1') do
14
14
  require 'puppet/util/puppetdb'
15
15
  require 'json'
16
16
 
17
- Puppet::Util::Puppetdb::GlobalCheck.run
18
-
19
17
  opts = args.pop
20
18
  raise ArgumentError, "Please provide at least one node" if args.empty?
21
19
 
@@ -22,8 +22,6 @@ Puppet::Face.define(:storeconfigs, '0.0.1') do
22
22
  DESC
23
23
 
24
24
  when_invoked do |options|
25
- require 'puppet/util/puppetdb/global_check'
26
- Puppet::Util::Puppetdb::GlobalCheck.run
27
25
 
28
26
  require 'puppet/rails'
29
27
 
@@ -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)
@@ -5,11 +5,6 @@ require 'puppet/util/puppetdb'
5
5
  class Puppet::Node::Puppetdb < Puppet::Indirector::REST
6
6
  include Puppet::Util::Puppetdb
7
7
 
8
- # Run initial checks
9
- def initialize
10
- Puppet::Util::Puppetdb::GlobalCheck.run
11
- end
12
-
13
8
  def find(request)
14
9
  end
15
10
 
@@ -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
 
@@ -1,7 +1,6 @@
1
1
  require 'puppet/util'
2
2
  require 'puppet/util/logging'
3
3
  require 'puppet/util/profiler'
4
- require 'puppet/util/puppetdb/global_check'
5
4
  require 'puppet/util/puppetdb/command_names'
6
5
  require 'puppet/util/puppetdb/command'
7
6
  require 'puppet/util/puppetdb/config'
@@ -1,6 +1,6 @@
1
1
  module PuppetDB
2
2
  module Terminus
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
  UPSTREAM_VERSION = VERSION.split(".")[0..2].join(".")
5
5
  end
6
6
  end
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.0
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-09-30 00:00:00.000000000 Z
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