puppetdb_foreman 6.0.1 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2210ab6f4ef16d2fec53bd410bb59ce67e1f1c644f05727df71bcc4882ed2d73
4
- data.tar.gz: 4c9238693d329f35d307a42cdef7e1a4c3ebb53e0ee13ffc899b528694e64628
3
+ metadata.gz: d683f14f9607acc0274d79c0c245ac9bf7c9b37ee0957f92ef2942df991f2edd
4
+ data.tar.gz: 3786bbda19883a603921ffa43b748c4ca24101c0bd237c70c8b528a765e5bd69
5
5
  SHA512:
6
- metadata.gz: 073a58bb177e3af928a0f65a62976736ffe2326012fe5cefe22b672866315e2e28d2e0d9cbdc7f1cbc28c2483d07039cb9f183a019db12f594e8e6dcda1976f3
7
- data.tar.gz: f1a7f4fee3f27b8e652495c0d017356ddfa83c2f4b719096b6e9c4fd98a6be57e16554941d3c5d8776fdcf4f088f0b7770d365ba5e78b5241c5c95e7be8a564b
6
+ metadata.gz: b728cb91bf886df44aa6c892d1ef6076d3892453e378a82d78453c0e3bed68973139eb48f15d72c1c4e79905b1a05d77eb547a90c8695ccb1e0e27583f3725e7
7
+ data.tar.gz: 1f8c68c45e271137f28b819e0529110ed0d3ea6100699757a051d728bd5e6ba1569a26c2f02622121c88afe1c08b7f4f46904c457725edc94e0a4a9d2ccf8fe5
@@ -24,7 +24,7 @@ module Orchestration
24
24
  ::Puppetdb.client.deactivate_node(certname)
25
25
  rescue StandardError => e
26
26
  failure format(
27
- _("Failed to deactivate node %<certname> (%<name>) in PuppetDB: %<message>\n "),
27
+ _("Failed to deactivate node %<certname>s (%<name>s) in PuppetDB: %<message>s\n "),
28
28
  name: name, message: e.message, certname: certname
29
29
  ), e
30
30
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  class MigratePuppetdbApiVersionSetting < ActiveRecord::Migration[4.2]
4
4
  def up
5
- puppetdb_address = Setting.where(category: 'Setting::Puppetdb', name: 'puppetdb_address').first.try(:value)
5
+ puppetdb_address = Setting.where(name: 'puppetdb_address').first.try(:value)
6
6
  return unless puppetdb_address
7
7
 
8
8
  api_version = URI.parse(puppetdb_address).path.start_with?('/pdb') ? 3 : 1
9
- setting = Setting.where(category: 'Setting::Puppetdb', name: 'puppetdb_api_version').first_or_create
9
+ setting = Setting.where(name: 'puppetdb_api_version').first_or_create
10
10
  setting.value = api_version
11
11
  setting.save
12
12
  end
@@ -3,7 +3,7 @@
3
3
  class FixPuppetdbSettingsCategoryToDsl < ActiveRecord::Migration[6.0]
4
4
  def up
5
5
  # rubocop:disable Rails/SkipsModelValidations
6
- Setting.where(category: 'Setting::Puppetdb').update_all(category: 'Setting')
6
+ Setting.where(category: 'Setting::Puppetdb').update_all(category: 'Setting') if column_exists?(:settings, :category)
7
7
  # rubocop:enable Rails/SkipsModelValidations
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetdbForeman
4
- VERSION = '6.0.1'
4
+ VERSION = '6.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetdb_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.3.7
131
+ rubygems_version: 3.3.26
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: This is a Foreman plugin to interact with PuppetDB.