foreman_maintain 0.8.19 → 0.8.20

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: a561663568bd8f9c24b2edebd58cffa0ea78180e7f84fe543bc18ad4108fffeb
4
- data.tar.gz: bf38f438a5da27447d968af32b3ecc0a3efc8241d0694b3591264d6e69babf32
3
+ metadata.gz: 72beb43529d9eb83adadc1f644b7e67cf8276d19527af380a94405affc16894b
4
+ data.tar.gz: 6a08f0bb85ad408f9dac5e904e7c6f5af30eba339e919e44d8740332fb8d33d3
5
5
  SHA512:
6
- metadata.gz: d9da7038f2c4f21aa3992337c2a7aced47b49f0dc34954c47210793d9805f5a7f5facc0a2a8ae51db7b0a1ce2c4e771365f9472cf64e61b2e944d38ba6b2c57b
7
- data.tar.gz: cdf6cff1c4f4e6715dbbd4327493371edb9c749f1be1559a9bd6e248c71aa955a46e72c9e7272b8392ab1d2e37a640233955af20540036910ed2bef1d8adec2f
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
 
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.8.19'.freeze
2
+ VERSION = '0.8.20'.freeze
3
3
  end
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.19
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-06 00:00:00.000000000 Z
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