foreman_maintain 1.2.8 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/features/foreman_server.rb +1 -5
- data/definitions/features/pulpcore.rb +2 -28
- data/definitions/procedures/pulpcore/container_repair_media_type.rb +23 -0
- data/definitions/scenarios/upgrade_to_capsule_6_13.rb +1 -0
- data/definitions/scenarios/upgrade_to_satellite_6_13.rb +1 -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: d0eb23991240b71cb8622a1c54108ee7f18ec76cc439e6cc5784241ea75963e5
|
4
|
+
data.tar.gz: eb417792c98776024dcc5ce989e2992eecd57145d333c1072e8c6a43a269d265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a3b6ed67de8ff550a59dc0b975d00a250698754a70fbef4e60546e1dc54a94d4d160d951a780a087b2b2a6aa83f36720531a063adb95b39e4154b1f06ab1c9
|
7
|
+
data.tar.gz: 536b1b2f86c94b0eaca1566d0f5d9cdd7a6ac0caf0cf82468b4296da26ed270c0a7e4a9526c29136e6ffe1398863290fc7f9b2e6cbb650aa88c7b46412b64186
|
@@ -10,11 +10,7 @@ module ForemanMaintain
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def services
|
13
|
-
|
14
|
-
[system_service('foreman', 30, :socket => 'foreman')]
|
15
|
-
else
|
16
|
-
[system_service('httpd', 30)]
|
17
|
-
end
|
13
|
+
[system_service('foreman', 30, :socket => 'foreman')]
|
18
14
|
end
|
19
15
|
|
20
16
|
def plugins
|
@@ -3,17 +3,13 @@ require 'foreman_maintain/utils/service/systemd'
|
|
3
3
|
class Features::Pulpcore < ForemanMaintain::Feature
|
4
4
|
metadata do
|
5
5
|
label :pulpcore
|
6
|
-
|
7
|
-
confine do
|
8
|
-
ForemanMaintain::Utils::Service::Systemd.new('pulpcore-api', 0).enabled?
|
9
|
-
end
|
10
6
|
end
|
11
7
|
|
12
8
|
def services
|
13
9
|
redis_services = feature(:redis) ? feature(:redis).services : []
|
14
10
|
|
15
11
|
self.class.pulpcore_common_services + configured_workers +
|
16
|
-
redis_services
|
12
|
+
redis_services
|
17
13
|
end
|
18
14
|
|
19
15
|
def configured_workers
|
@@ -25,15 +21,6 @@ class Features::Pulpcore < ForemanMaintain::Feature
|
|
25
21
|
end
|
26
22
|
end
|
27
23
|
|
28
|
-
def self.pulpcore_migration_services
|
29
|
-
pulpcore_common_services + [
|
30
|
-
ForemanMaintain::Utils.system_service('pulpcore-worker@1', 20),
|
31
|
-
ForemanMaintain::Utils.system_service('pulpcore-worker@2', 20),
|
32
|
-
ForemanMaintain::Utils.system_service('pulpcore-worker@3', 20),
|
33
|
-
ForemanMaintain::Utils.system_service('pulpcore-worker@4', 20)
|
34
|
-
]
|
35
|
-
end
|
36
|
-
|
37
24
|
def config_files
|
38
25
|
[
|
39
26
|
'/etc/pulp/settings.py',
|
@@ -42,22 +29,9 @@ class Features::Pulpcore < ForemanMaintain::Feature
|
|
42
29
|
end
|
43
30
|
|
44
31
|
def self.pulpcore_common_services
|
45
|
-
|
32
|
+
[
|
46
33
|
ForemanMaintain::Utils.system_service('pulpcore-api', 10, :socket => 'pulpcore-api'),
|
47
34
|
ForemanMaintain::Utils.system_service('pulpcore-content', 10, :socket => 'pulpcore-content')
|
48
35
|
]
|
49
|
-
common_services + pulpcore_resource_manager_service
|
50
|
-
end
|
51
|
-
|
52
|
-
def self.pulpcore_resource_manager_service
|
53
|
-
# The pulpcore_resource_manager is only required on 3.14+
|
54
|
-
# if the old tasking system is being used
|
55
|
-
# The foreman-installer does not create unit file for this service,
|
56
|
-
# if the new tasking system is being used
|
57
|
-
if feature(:service).unit_file_available?('pulpcore-resource-manager.service')
|
58
|
-
return [ForemanMaintain::Utils.system_service('pulpcore-resource-manager', 10)]
|
59
|
-
end
|
60
|
-
|
61
|
-
[]
|
62
36
|
end
|
63
37
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Procedures::Pulpcore
|
2
|
+
class ContainerRepairMediaType < ForemanMaintain::Procedure
|
3
|
+
include ForemanMaintain::Concerns::SystemService
|
4
|
+
|
5
|
+
metadata do
|
6
|
+
description 'Repair container media type in the pulpcore db'
|
7
|
+
for_feature :pulpcore
|
8
|
+
end
|
9
|
+
|
10
|
+
def run
|
11
|
+
with_spinner('Repairing container media type 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('Repairing container media type')
|
17
|
+
execute!('PULP_SETTINGS=/etc/pulp/settings.py '\
|
18
|
+
'DJANGO_SETTINGS_MODULE=pulpcore.app.settings '\
|
19
|
+
'pulpcore-manager container-repair-media-type')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -76,6 +76,7 @@ module Scenarios::Satellite_6_13
|
|
76
76
|
add_step(Procedures::RefreshFeatures)
|
77
77
|
add_step(Procedures::Service::Start.new)
|
78
78
|
add_step(Procedures::Pulpcore::TrimRpmChangelogs.new)
|
79
|
+
add_step(Procedures::Pulpcore::ContainerRepairMediaType.new)
|
79
80
|
add_steps(find_procedures(:post_migrations))
|
80
81
|
end
|
81
82
|
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: 1.2.
|
4
|
+
version: 1.2.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: 2023-
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- definitions/procedures/pulp/migrate.rb
|
301
301
|
- definitions/procedures/pulp/print_remove_instructions.rb
|
302
302
|
- definitions/procedures/pulp/remove.rb
|
303
|
+
- definitions/procedures/pulpcore/container_repair_media_type.rb
|
303
304
|
- definitions/procedures/pulpcore/migrate.rb
|
304
305
|
- definitions/procedures/pulpcore/trim_rpm_changelogs.rb
|
305
306
|
- definitions/procedures/puppet/delete_empty_ca_cert_request_files.rb
|
@@ -496,7 +497,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
496
497
|
- !ruby/object:Gem::Version
|
497
498
|
version: '0'
|
498
499
|
requirements: []
|
499
|
-
rubygems_version: 3.
|
500
|
+
rubygems_version: 3.4.10
|
500
501
|
signing_key:
|
501
502
|
specification_version: 4
|
502
503
|
summary: Foreman maintenance tool belt
|