puppetdb_foreman 6.0.1 → 6.0.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d683f14f9607acc0274d79c0c245ac9bf7c9b37ee0957f92ef2942df991f2edd
|
4
|
+
data.tar.gz: 3786bbda19883a603921ffa43b748c4ca24101c0bd237c70c8b528a765e5bd69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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(
|
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(
|
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
|
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.
|
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:
|
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.
|
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.
|