foreman_maintain 1.1.7 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/procedures/pulpcore/trim_rpm_changelogs.rb +23 -0
- data/definitions/scenarios/self_upgrade.rb +2 -2
- data/definitions/scenarios/upgrade_to_satellite_6_11.rb +1 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12.rb +1 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12_z.rb +1 -0
- data/extras/foreman_protector/foreman-protector.whitelist +5 -0
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69158577583d9944fc51caf91b42171deb3d44a286fcbca2bced55bf667d80e1
|
4
|
+
data.tar.gz: b30ed55b5b891f6b4e894ca532a14b8543a68a0270f272869230d911655ae478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4763f9ee14216abab95da46d04ebe87b2cf8a11ac874204e6a2f0771f97c3a49b0f1a42e88959faf023ea08536e08d0fe4d263625af1329e542697b7f194033
|
7
|
+
data.tar.gz: ffe603fe952c1d1eb010cb9a5c22329b257a0fbb33aed897dc4871cb683e99b8c6fb38e2e1462aa4c16ec5c32943a6f70ecb88b6177c2e420eac7231634a80fa
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Procedures::Pulpcore
|
2
|
+
class TrimRpmChangelogs < ForemanMaintain::Procedure
|
3
|
+
include ForemanMaintain::Concerns::SystemService
|
4
|
+
|
5
|
+
metadata do
|
6
|
+
description 'Trim RPM changelogs in the pulpcore db'
|
7
|
+
for_feature :pulpcore
|
8
|
+
end
|
9
|
+
|
10
|
+
def run
|
11
|
+
with_spinner('Trimming RPM changelogs in the pulpcore db') do |spinner|
|
12
|
+
necessary_services = feature(:pulpcore_database).services
|
13
|
+
|
14
|
+
feature(:service).handle_services(spinner, 'start', :only => necessary_services)
|
15
|
+
|
16
|
+
spinner.update('Trimming RPM changelogs')
|
17
|
+
execute!('sudo PULP_SETTINGS=/etc/pulp/settings.py '\
|
18
|
+
'DJANGO_SETTINGS_MODULE=pulpcore.app.settings '\
|
19
|
+
'pulpcore-manager rpm-trim-changelogs')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -2,11 +2,11 @@ module ForemanMaintain::Scenarios
|
|
2
2
|
class SelfUpgradeBase < ForemanMaintain::Scenario
|
3
3
|
include ForemanMaintain::Concerns::Downstream
|
4
4
|
def target_version
|
5
|
-
@target_version ||= current_version.bump
|
5
|
+
@target_version ||= Gem::Version.new(current_version).bump.to_s
|
6
6
|
end
|
7
7
|
|
8
8
|
def current_version
|
9
|
-
feature(:instance).downstream.
|
9
|
+
feature(:instance).downstream.current_version.to_s[/^\d+\.\d+\.\d+/]
|
10
10
|
end
|
11
11
|
|
12
12
|
def maintenance_repo_label
|
@@ -20,7 +20,12 @@ yum-utils
|
|
20
20
|
# el7 psql client dependencies
|
21
21
|
rh-postgresql12-postgresql
|
22
22
|
rh-postgresql12-postgresql-libs
|
23
|
+
rh-postgresql12-postgresql-syspaths
|
23
24
|
rh-postgresql12-runtime
|
25
|
+
scl-utils
|
26
|
+
# el8 psql client dependencies
|
27
|
+
postgresql
|
28
|
+
libpq
|
24
29
|
# el8 yum-utils dependencies
|
25
30
|
dnf-plugins-core
|
26
31
|
python3-dnf-plugins-core
|
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: 1.1.
|
4
|
+
version: 1.1.9
|
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:
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- definitions/procedures/pulp/print_remove_instructions.rb
|
299
299
|
- definitions/procedures/pulp/remove.rb
|
300
300
|
- definitions/procedures/pulpcore/migrate.rb
|
301
|
+
- definitions/procedures/pulpcore/trim_rpm_changelogs.rb
|
301
302
|
- definitions/procedures/puppet/delete_empty_ca_cert_request_files.rb
|
302
303
|
- definitions/procedures/puppet/remove_puppet.rb
|
303
304
|
- definitions/procedures/puppet/remove_puppet_data.rb
|
@@ -483,7 +484,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
483
484
|
- !ruby/object:Gem::Version
|
484
485
|
version: '0'
|
485
486
|
requirements: []
|
486
|
-
rubygems_version: 3.
|
487
|
+
rubygems_version: 3.3.26
|
487
488
|
signing_key:
|
488
489
|
specification_version: 4
|
489
490
|
summary: Foreman maintenance tool belt
|