foreman_maintain 0.8.19 → 0.8.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72beb43529d9eb83adadc1f644b7e67cf8276d19527af380a94405affc16894b
|
4
|
+
data.tar.gz: 6a08f0bb85ad408f9dac5e904e7c6f5af30eba339e919e44d8740332fb8d33d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480de2bbfe003b974b86d8f5baebdd624f3ebf407260f914b368c615fbc8481eb2b6c8d7592bd25f30f1055d892d7170385cbbdd06e84ec7100cd554fae993c8
|
7
|
+
data.tar.gz: 752ed2fb124297336e477357786adb1f8b157fe319bb13872d6cf684a5fbd9908d4e66c482bedf23cd5ef84ff75f573030e377a0e92a65e8f555fa793b85846a
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Checks
|
2
|
+
class CheckHttpsProxies < ForemanMaintain::Check
|
3
|
+
metadata do
|
4
|
+
label :https_proxies
|
5
|
+
for_feature :foreman_database
|
6
|
+
description 'Check for HTTPS proxies from the database'
|
7
|
+
manual_detection
|
8
|
+
end
|
9
|
+
|
10
|
+
def run
|
11
|
+
https_proxies = find_https_proxies
|
12
|
+
unless https_proxies.empty?
|
13
|
+
https_proxy_names = https_proxies.map { |proxy| proxy['name'] }
|
14
|
+
question = "Syncing repositories through an 'HTTP Proxy' that uses the HTTPS\n"\
|
15
|
+
"protocol is not supported directly with Satellite 6.10.\n"\
|
16
|
+
"The following proxies use HTTPS: #{https_proxy_names.join(', ')}.\n"\
|
17
|
+
"For a suggested solution see https://access.redhat.com/solutions/6414991\n"\
|
18
|
+
'Continue upgrade?'
|
19
|
+
answer = ask_decision(question, actions_msg: 'y(yes), q(quit)')
|
20
|
+
abort! if answer != :yes
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def find_https_proxies
|
25
|
+
feature(:foreman_database).query(self.class.query_to_get_https_proxies)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.query_to_get_https_proxies
|
29
|
+
<<-SQL
|
30
|
+
SELECT \"http_proxies\".* FROM \"http_proxies\" WHERE (http_proxies.url ilike 'https://%')
|
31
|
+
SQL
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -29,6 +29,7 @@ module Scenarios::Satellite_6_10
|
|
29
29
|
add_step(Checks::CheckForNewerPackages.new(:packages => [foreman_plugin_name('katello'),
|
30
30
|
'python3-pulp-2to3-migration'],
|
31
31
|
:manual_confirmation_version => '6.9'))
|
32
|
+
add_step(Checks::CheckHttpsProxies)
|
32
33
|
add_steps(find_checks(:default))
|
33
34
|
add_steps(find_checks(:pre_upgrade))
|
34
35
|
|
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.8.
|
4
|
+
version: 0.8.20
|
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: 2021-10-
|
11
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- definitions/checks/foreman/check_corrupted_roles.rb
|
135
135
|
- definitions/checks/foreman/check_duplicate_permission.rb
|
136
136
|
- definitions/checks/foreman/check_duplicate_roles.rb
|
137
|
+
- definitions/checks/foreman/check_https_proxies.rb
|
137
138
|
- definitions/checks/foreman/db_up.rb
|
138
139
|
- definitions/checks/foreman/facts_names.rb
|
139
140
|
- definitions/checks/foreman/puppet_class_duplicates.rb
|