foreman_maintain 1.1.8 → 1.1.10
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/procedures/restore/reindex_databases.rb +22 -0
- data/definitions/scenarios/restore.rb +5 -0
- 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/lib/foreman_maintain/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 521d4872b92d49f2bfe38afcbb8113a33cc8b9470d3d3d983074761ed2001202
|
4
|
+
data.tar.gz: 4670a9b7913fb1c95d992e0e3234b66b2ade8e351c4180b8d7eacee9eb2b2b5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b440223080a5882f69e273426769427b0351d81a0eb4ee49c6c4faa15f29116a6dcc71d978ac6657b54c3788d5f6f6eb5c2c66c8d2d3e581db67d3871b40320a
|
7
|
+
data.tar.gz: 1838ce95442878efa5444e8f643e716ec5251461692c43215d6418de20fa1b7caef195abbd562c4eb96426990c51b3d1c3dc08e75f8694a2072e5f6e5645f276
|
@@ -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
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Procedures::Restore
|
2
|
+
class ReindexDatabases < ForemanMaintain::Procedure
|
3
|
+
include ForemanMaintain::Concerns::SystemService
|
4
|
+
|
5
|
+
metadata do
|
6
|
+
description 'REINDEX databases'
|
7
|
+
|
8
|
+
confine do
|
9
|
+
feature(:instance).postgresql_local?
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def run
|
14
|
+
with_spinner('Reindexing the databases') do |spinner|
|
15
|
+
feature(:service).handle_services(spinner, 'start', :only => ['postgresql'])
|
16
|
+
|
17
|
+
spinner.update('Reindexing the databases')
|
18
|
+
execute!('runuser - postgres -c "reindexdb -a"')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -45,6 +45,11 @@ module ForemanMaintain::Scenarios
|
|
45
45
|
add_step(Procedures::Service::Stop.new(:only => ['postgresql']))
|
46
46
|
end
|
47
47
|
restore_mongo_dump(backup)
|
48
|
+
|
49
|
+
if feature(:instance).postgresql_local? && !backup.online_backup?
|
50
|
+
add_step_with_context(Procedures::Restore::ReindexDatabases)
|
51
|
+
end
|
52
|
+
|
48
53
|
add_steps_with_context(Procedures::Pulp::Migrate,
|
49
54
|
Procedures::Pulpcore::Migrate,
|
50
55
|
Procedures::Restore::CandlepinResetMigrations)
|
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.10
|
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-02-15 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
|
@@ -321,6 +322,7 @@ files:
|
|
321
322
|
- definitions/procedures/restore/postgres_owner.rb
|
322
323
|
- definitions/procedures/restore/pulpcore_dump.rb
|
323
324
|
- definitions/procedures/restore/regenerate_queues.rb
|
325
|
+
- definitions/procedures/restore/reindex_databases.rb
|
324
326
|
- definitions/procedures/selinux/set_file_security.rb
|
325
327
|
- definitions/procedures/service/base.rb
|
326
328
|
- definitions/procedures/service/daemon_reload.rb
|
@@ -483,7 +485,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
483
485
|
- !ruby/object:Gem::Version
|
484
486
|
version: '0'
|
485
487
|
requirements: []
|
486
|
-
rubygems_version: 3.
|
488
|
+
rubygems_version: 3.3.26
|
487
489
|
signing_key:
|
488
490
|
specification_version: 4
|
489
491
|
summary: Foreman maintenance tool belt
|