foreman_maintain 0.6.13 → 0.6.14
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: ae5019f17555d2bd1f46cb58469c2a8e9134a7b0723628a08f27ed918703dc53
|
|
4
|
+
data.tar.gz: f12b8fbf32055f25abd89ba4c9a8ed72cb26438db24c0bfd143cb0fe52204d48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b160fc0f48f6a873ea32596abd608f21976e06e6505fe1cc909b3000df0fdd6c41df713fa02f2e5280d2b2abfe923efe3a2c440036f53d0c5348c018fb740594
|
|
7
|
+
data.tar.gz: 382123bb454e8afcb46e375c5fd52ead52081ffb76ba2ceac6cbd4896e9d9d1fb4e5f9d2d7dc16f1b22362a57877782017165b1baa3cb69f87e10a2402a0802a
|
|
@@ -18,31 +18,39 @@ module Checks
|
|
|
18
18
|
# rubocop:disable Metrics/MethodLength
|
|
19
19
|
def check_custom_hiera
|
|
20
20
|
hiera_file = feature(:installer).custom_hiera_file
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if config
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
elsif config['postgresql::server::config_entries'].key?('checkpoint_segments')
|
|
30
|
-
message = <<-MESSAGE.strip_heredoc
|
|
31
|
-
ERROR: Tuning option 'checkpoint_segments' found.
|
|
32
|
-
This option is no longer valid for PostgreSQL 9.5 or newer.
|
|
33
|
-
Please remove it from following file and re-run the command.
|
|
34
|
-
- #{hiera_file}
|
|
35
|
-
MESSAGE
|
|
36
|
-
if feature(:katello)
|
|
37
|
-
message += <<-MESSAGE.strip_heredoc
|
|
38
|
-
The presence of checkpoint_segments in #{hiera_file} indicates manual tuning.
|
|
39
|
-
Manual tuning can override values provided by the --tuning parameter.
|
|
40
|
-
Review #{hiera_file} for values that are already provided by the built in tuning profiles.
|
|
41
|
-
Built in tuning profiles also provide a supported upgrade path.
|
|
21
|
+
begin
|
|
22
|
+
config = YAML.load_file(hiera_file)
|
|
23
|
+
if config.is_a?(Hash) && config.key?('postgresql::server::config_entries')
|
|
24
|
+
if config['postgresql::server::config_entries'].nil?
|
|
25
|
+
return <<-MESSAGE.strip_heredoc
|
|
26
|
+
ERROR: 'postgresql::server::config_entries' cannot be null.
|
|
27
|
+
Please remove it from following file and re-run the command.
|
|
28
|
+
- #{hiera_file}
|
|
42
29
|
MESSAGE
|
|
30
|
+
elsif config['postgresql::server::config_entries'].key?('checkpoint_segments')
|
|
31
|
+
message = <<-MESSAGE.strip_heredoc
|
|
32
|
+
ERROR: Tuning option 'checkpoint_segments' found.
|
|
33
|
+
This option is no longer valid for PostgreSQL 9.5 or newer.
|
|
34
|
+
Please remove it from following file and re-run the command.
|
|
35
|
+
- #{hiera_file}
|
|
36
|
+
MESSAGE
|
|
37
|
+
if feature(:katello)
|
|
38
|
+
message += <<-MESSAGE.strip_heredoc
|
|
39
|
+
The presence of checkpoint_segments in #{hiera_file} indicates manual tuning.
|
|
40
|
+
Manual tuning can override values provided by the --tuning parameter.
|
|
41
|
+
Review #{hiera_file} for values that are already provided by the built in tuning profiles.
|
|
42
|
+
Built in tuning profiles also provide a supported upgrade path.
|
|
43
|
+
MESSAGE
|
|
44
|
+
end
|
|
45
|
+
return message
|
|
43
46
|
end
|
|
44
|
-
|
|
47
|
+
elsif config.is_a?(String)
|
|
48
|
+
fail! "Error: File #{hiera_file} is not a yaml file."
|
|
49
|
+
exit 1
|
|
45
50
|
end
|
|
51
|
+
rescue Psych::SyntaxError
|
|
52
|
+
fail! "Found syntax error in file: #{hiera_file}"
|
|
53
|
+
exit 1
|
|
46
54
|
end
|
|
47
55
|
end
|
|
48
56
|
# rubocop:enable Metrics/MethodLength
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_maintain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|
|
@@ -405,7 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
405
405
|
- !ruby/object:Gem::Version
|
|
406
406
|
version: '0'
|
|
407
407
|
requirements: []
|
|
408
|
-
rubygems_version: 3.0.
|
|
408
|
+
rubygems_version: 3.0.8
|
|
409
409
|
signing_key:
|
|
410
410
|
specification_version: 4
|
|
411
411
|
summary: Foreman maintenance tool belt
|