foreman_maintain 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/features/apache.rb +13 -3
- data/definitions/features/gofer.rb +0 -1
- data/definitions/features/instance.rb +3 -3
- data/definitions/features/pulp2.rb +0 -1
- data/definitions/features/pulpcore.rb +1 -2
- data/definitions/features/salt_server.rb +24 -0
- data/definitions/procedures/pulp/remove.rb +2 -1
- data/definitions/scenarios/upgrade_to_capsule_6_12.rb +2 -0
- data/definitions/scenarios/upgrade_to_capsule_6_12_z.rb +2 -0
- data/definitions/scenarios/upgrade_to_capsule_6_13.rb +92 -0
- data/definitions/scenarios/upgrade_to_capsule_6_13_z.rb +92 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12.rb +2 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12_z.rb +2 -0
- data/definitions/scenarios/upgrade_to_satellite_6_13.rb +95 -0
- data/definitions/scenarios/upgrade_to_satellite_6_13_z.rb +94 -0
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdc12ecbef4e02dd8b77b3c4888623c13e418b7435a53f8dc1d280b9faf0b699
|
4
|
+
data.tar.gz: 4d75194cf9184f68be21cbc55cba1def43d76eff4cfc1bc92a091b93662c3371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f3e34a2670e7b92ddeb1db1107446fb71ded2d1cbe5b79afa259a3a13a5d87e8d45a63f7ba235fa485099689c30eee366bd7bace95d52db7f28cb0dcad5d35
|
7
|
+
data.tar.gz: 217124b53d7294d7d4be7c6be9a1a7e6fb43e58190c30abdcbcb9e48daf0e0e3164ca9e5b617e3c08add2a83d722dac7f5dd91f8163b400008ac748f8e32d56d
|
@@ -3,17 +3,27 @@ class Features::Apache < ForemanMaintain::Feature
|
|
3
3
|
label :apache
|
4
4
|
|
5
5
|
confine do
|
6
|
-
find_package(
|
6
|
+
find_package(package_name)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
def services
|
11
11
|
[
|
12
|
-
system_service(
|
12
|
+
system_service(self.class.package_name, 30)
|
13
13
|
]
|
14
14
|
end
|
15
15
|
|
16
16
|
def config_files
|
17
|
-
[
|
17
|
+
["/etc/#{self.class.package_name}"]
|
18
|
+
end
|
19
|
+
|
20
|
+
class << self
|
21
|
+
def package_name
|
22
|
+
if debian?
|
23
|
+
'apache2'
|
24
|
+
else
|
25
|
+
'httpd'
|
26
|
+
end
|
27
|
+
end
|
18
28
|
end
|
19
29
|
end
|
@@ -60,13 +60,13 @@ class Features::Instance < ForemanMaintain::Feature
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
64
|
-
@
|
63
|
+
def server_connection_ca_file
|
64
|
+
@server_connection_ca_file ||= feature(:installer).answers['foreman']['server_ssl_chain']
|
65
65
|
end
|
66
66
|
|
67
67
|
def server_connection
|
68
68
|
net = Net::HTTP.new(ForemanMaintain.config.foreman_url, ForemanMaintain.config.foreman_port)
|
69
|
-
net.ca_file =
|
69
|
+
net.ca_file = server_connection_ca_file
|
70
70
|
net.use_ssl = true
|
71
71
|
net
|
72
72
|
end
|
@@ -7,7 +7,6 @@ class Features::Pulp < ForemanMaintain::Feature
|
|
7
7
|
|
8
8
|
confine do
|
9
9
|
!check_min_version('katello-common', '4.0') &&
|
10
|
-
ForemanMaintain::Utils::Service::Systemd.new('pulp_resource_manager', 0).exist? &&
|
11
10
|
ForemanMaintain::Utils::Service::Systemd.new('pulp_resource_manager', 0).enabled?
|
12
11
|
end
|
13
12
|
end
|
@@ -5,8 +5,7 @@ class Features::Pulpcore < ForemanMaintain::Feature
|
|
5
5
|
label :pulpcore
|
6
6
|
|
7
7
|
confine do
|
8
|
-
ForemanMaintain::Utils::Service::Systemd.new('pulpcore-api', 0).
|
9
|
-
ForemanMaintain::Utils::Service::Systemd.new('pulpcore-api', 0).enabled?
|
8
|
+
ForemanMaintain::Utils::Service::Systemd.new('pulpcore-api', 0).enabled?
|
10
9
|
end
|
11
10
|
end
|
12
11
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class Features::SaltServer < ForemanMaintain::Feature
|
2
|
+
metadata do
|
3
|
+
label :salt_server
|
4
|
+
|
5
|
+
confine do
|
6
|
+
find_package('salt-master') &&
|
7
|
+
ForemanMaintain::Utils::Service::Systemd.new('salt-master', 0).enabled?
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def config_files
|
12
|
+
[
|
13
|
+
'/etc/salt'
|
14
|
+
]
|
15
|
+
end
|
16
|
+
|
17
|
+
def services
|
18
|
+
salt_services = [system_service('salt-master', 30)]
|
19
|
+
if ForemanMaintain::Utils::Service::Systemd.new('salt-api', 0).enabled?
|
20
|
+
salt_services += [system_service('salt-api', 30)]
|
21
|
+
end
|
22
|
+
salt_services
|
23
|
+
end
|
24
|
+
end
|
@@ -56,6 +56,8 @@ module Scenarios::Capsule_6_12
|
|
56
56
|
|
57
57
|
def compose
|
58
58
|
add_step(Procedures::Repositories::Setup.new(:version => '6.12'))
|
59
|
+
modules_to_enable = ["satellite-capsule:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
59
61
|
add_step(Procedures::Packages::UnlockVersions.new)
|
60
62
|
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
63
|
add_step_with_context(Procedures::Installer::Upgrade)
|
@@ -56,6 +56,8 @@ module Scenarios::Capsule_6_12_z
|
|
56
56
|
|
57
57
|
def compose
|
58
58
|
add_step(Procedures::Repositories::Setup.new(:version => '6.12'))
|
59
|
+
modules_to_enable = ["satellite-capsule:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
59
61
|
add_step(Procedures::Packages::UnlockVersions.new)
|
60
62
|
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
63
|
add_step_with_context(Procedures::Installer::Upgrade)
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module Scenarios::Capsule_6_13
|
2
|
+
class Abstract < ForemanMaintain::Scenario
|
3
|
+
def self.upgrade_metadata(&block)
|
4
|
+
metadata do
|
5
|
+
tags :upgrade_scenario
|
6
|
+
confine do
|
7
|
+
feature(:capsule) &&
|
8
|
+
(feature(:capsule).current_minor_version == '6.12' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.13')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.13'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Capsule 6.13'
|
23
|
+
tags :pre_upgrade_checks
|
24
|
+
run_strategy :fail_slow
|
25
|
+
end
|
26
|
+
|
27
|
+
def compose
|
28
|
+
add_steps(find_checks(:default))
|
29
|
+
add_steps(find_checks(:pre_upgrade))
|
30
|
+
add_step(Checks::Foreman::CheckpointSegments)
|
31
|
+
add_step(Checks::Repositories::Validate.new(:version => '6.13'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Capsule 6.13'
|
38
|
+
tags :pre_migrations
|
39
|
+
end
|
40
|
+
|
41
|
+
def compose
|
42
|
+
add_steps(find_procedures(:pre_migrations))
|
43
|
+
add_step(Procedures::Service::Stop.new)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class Migrations < Abstract
|
48
|
+
upgrade_metadata do
|
49
|
+
description 'Migration scripts to Capsule 6.13'
|
50
|
+
tags :migrations
|
51
|
+
end
|
52
|
+
|
53
|
+
def set_context_mapping
|
54
|
+
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
55
|
+
end
|
56
|
+
|
57
|
+
def compose
|
58
|
+
add_step(Procedures::Repositories::Setup.new(:version => '6.13'))
|
59
|
+
modules_to_enable = ["satellite-capsule:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
61
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
62
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
63
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class PostMigrations < Abstract
|
68
|
+
upgrade_metadata do
|
69
|
+
description 'Procedures after migrating to Capsule 6.13'
|
70
|
+
tags :post_migrations
|
71
|
+
end
|
72
|
+
|
73
|
+
def compose
|
74
|
+
add_step(Procedures::RefreshFeatures)
|
75
|
+
add_step(Procedures::Service::Start.new)
|
76
|
+
add_steps(find_procedures(:post_migrations))
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class PostUpgradeChecks < Abstract
|
81
|
+
upgrade_metadata do
|
82
|
+
description 'Checks after upgrading to Capsule 6.13'
|
83
|
+
tags :post_upgrade_checks
|
84
|
+
run_strategy :fail_slow
|
85
|
+
end
|
86
|
+
|
87
|
+
def compose
|
88
|
+
add_steps(find_checks(:default))
|
89
|
+
add_steps(find_checks(:post_upgrade))
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module Scenarios::Capsule_6_13_z
|
2
|
+
class Abstract < ForemanMaintain::Scenario
|
3
|
+
def self.upgrade_metadata(&block)
|
4
|
+
metadata do
|
5
|
+
tags :upgrade_scenario
|
6
|
+
confine do
|
7
|
+
feature(:capsule) &&
|
8
|
+
(feature(:capsule).current_minor_version == '6.13' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.13.z')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.13.z'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Capsule 6.13.z'
|
23
|
+
tags :pre_upgrade_checks
|
24
|
+
run_strategy :fail_slow
|
25
|
+
end
|
26
|
+
|
27
|
+
def compose
|
28
|
+
add_steps(find_checks(:default))
|
29
|
+
add_steps(find_checks(:pre_upgrade))
|
30
|
+
add_step(Checks::Foreman::CheckpointSegments)
|
31
|
+
add_step(Checks::Repositories::Validate.new(:version => '6.13'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Capsule 6.13.z'
|
38
|
+
tags :pre_migrations
|
39
|
+
end
|
40
|
+
|
41
|
+
def compose
|
42
|
+
add_steps(find_procedures(:pre_migrations))
|
43
|
+
add_step(Procedures::Service::Stop.new)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class Migrations < Abstract
|
48
|
+
upgrade_metadata do
|
49
|
+
description 'Migration scripts to Capsule 6.13.z'
|
50
|
+
tags :migrations
|
51
|
+
end
|
52
|
+
|
53
|
+
def set_context_mapping
|
54
|
+
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
55
|
+
end
|
56
|
+
|
57
|
+
def compose
|
58
|
+
add_step(Procedures::Repositories::Setup.new(:version => '6.13'))
|
59
|
+
modules_to_enable = ["satellite-capsule:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
61
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
62
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
63
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class PostMigrations < Abstract
|
68
|
+
upgrade_metadata do
|
69
|
+
description 'Procedures after migrating to Capsule 6.13.z'
|
70
|
+
tags :post_migrations
|
71
|
+
end
|
72
|
+
|
73
|
+
def compose
|
74
|
+
add_step(Procedures::RefreshFeatures)
|
75
|
+
add_step(Procedures::Service::Start.new)
|
76
|
+
add_steps(find_procedures(:post_migrations))
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class PostUpgradeChecks < Abstract
|
81
|
+
upgrade_metadata do
|
82
|
+
description 'Checks after upgrading to Capsule 6.13.z'
|
83
|
+
tags :post_upgrade_checks
|
84
|
+
run_strategy :fail_slow
|
85
|
+
end
|
86
|
+
|
87
|
+
def compose
|
88
|
+
add_steps(find_checks(:default))
|
89
|
+
add_steps(find_checks(:post_upgrade))
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -57,6 +57,8 @@ module Scenarios::Satellite_6_12
|
|
57
57
|
|
58
58
|
def compose
|
59
59
|
add_step(Procedures::Repositories::Setup.new(:version => '6.12'))
|
60
|
+
modules_to_enable = ["satellite:#{el_short_name}"]
|
61
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
60
62
|
add_step(Procedures::Packages::UnlockVersions.new)
|
61
63
|
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
62
64
|
add_step_with_context(Procedures::Installer::Upgrade)
|
@@ -56,6 +56,8 @@ module Scenarios::Satellite_6_12_z
|
|
56
56
|
|
57
57
|
def compose
|
58
58
|
add_step(Procedures::Repositories::Setup.new(:version => '6.12'))
|
59
|
+
modules_to_enable = ["satellite:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
59
61
|
add_step(Procedures::Packages::UnlockVersions.new)
|
60
62
|
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
63
|
add_step_with_context(Procedures::Installer::Upgrade)
|
@@ -0,0 +1,95 @@
|
|
1
|
+
module Scenarios::Satellite_6_13
|
2
|
+
class Abstract < ForemanMaintain::Scenario
|
3
|
+
def self.upgrade_metadata(&block)
|
4
|
+
metadata do
|
5
|
+
tags :upgrade_scenario
|
6
|
+
confine do
|
7
|
+
feature(:satellite) &&
|
8
|
+
(feature(:satellite).current_minor_version == '6.12' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.13')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.13'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Satellite 6.13'
|
23
|
+
tags :pre_upgrade_checks
|
24
|
+
run_strategy :fail_slow
|
25
|
+
end
|
26
|
+
|
27
|
+
def compose
|
28
|
+
add_steps(find_checks(:default))
|
29
|
+
add_steps(find_checks(:pre_upgrade))
|
30
|
+
add_step(Checks::Foreman::CheckpointSegments)
|
31
|
+
add_step(Checks::Repositories::Validate.new(:version => '6.13'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Satellite 6.13'
|
38
|
+
tags :pre_migrations
|
39
|
+
end
|
40
|
+
|
41
|
+
def compose
|
42
|
+
add_steps(find_procedures(:pre_migrations))
|
43
|
+
add_step(Procedures::Service::Stop.new)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class Migrations < Abstract
|
48
|
+
upgrade_metadata do
|
49
|
+
description 'Migration scripts to Satellite 6.13'
|
50
|
+
tags :migrations
|
51
|
+
run_strategy :fail_fast
|
52
|
+
end
|
53
|
+
|
54
|
+
def set_context_mapping
|
55
|
+
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
56
|
+
end
|
57
|
+
|
58
|
+
def compose
|
59
|
+
add_step(Procedures::Repositories::Setup.new(:version => '6.13'))
|
60
|
+
modules_to_enable = ["satellite:#{el_short_name}"]
|
61
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
62
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
63
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
64
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
65
|
+
add_step(Procedures::Installer::UpgradeRakeTask)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
class PostMigrations < Abstract
|
70
|
+
upgrade_metadata do
|
71
|
+
description 'Procedures after migrating to Satellite 6.13'
|
72
|
+
tags :post_migrations
|
73
|
+
end
|
74
|
+
|
75
|
+
def compose
|
76
|
+
add_step(Procedures::RefreshFeatures)
|
77
|
+
add_step(Procedures::Service::Start.new)
|
78
|
+
add_step(Procedures::Pulpcore::TrimRpmChangelogs.new)
|
79
|
+
add_steps(find_procedures(:post_migrations))
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
class PostUpgradeChecks < Abstract
|
84
|
+
upgrade_metadata do
|
85
|
+
description 'Checks after upgrading to Satellite 6.13'
|
86
|
+
tags :post_upgrade_checks
|
87
|
+
run_strategy :fail_slow
|
88
|
+
end
|
89
|
+
|
90
|
+
def compose
|
91
|
+
add_steps(find_checks(:default))
|
92
|
+
add_steps(find_checks(:post_upgrade))
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
module Scenarios::Satellite_6_13_z
|
2
|
+
class Abstract < ForemanMaintain::Scenario
|
3
|
+
def self.upgrade_metadata(&block)
|
4
|
+
metadata do
|
5
|
+
tags :upgrade_scenario
|
6
|
+
confine do
|
7
|
+
feature(:satellite) &&
|
8
|
+
(feature(:satellite).current_minor_version == '6.13' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.13.z')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.13.z'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Satellite 6.13.z'
|
23
|
+
tags :pre_upgrade_checks
|
24
|
+
run_strategy :fail_slow
|
25
|
+
end
|
26
|
+
|
27
|
+
def compose
|
28
|
+
add_steps(find_checks(:default))
|
29
|
+
add_steps(find_checks(:pre_upgrade))
|
30
|
+
add_step(Checks::Foreman::CheckpointSegments)
|
31
|
+
add_step(Checks::Repositories::Validate.new(:version => '6.13'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Satellite 6.13.z'
|
38
|
+
tags :pre_migrations
|
39
|
+
end
|
40
|
+
|
41
|
+
def compose
|
42
|
+
add_steps(find_procedures(:pre_migrations))
|
43
|
+
add_step(Procedures::Service::Stop.new)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class Migrations < Abstract
|
48
|
+
upgrade_metadata do
|
49
|
+
description 'Migration scripts to Satellite 6.13.z'
|
50
|
+
tags :migrations
|
51
|
+
end
|
52
|
+
|
53
|
+
def set_context_mapping
|
54
|
+
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
55
|
+
end
|
56
|
+
|
57
|
+
def compose
|
58
|
+
add_step(Procedures::Repositories::Setup.new(:version => '6.13'))
|
59
|
+
modules_to_enable = ["satellite:#{el_short_name}"]
|
60
|
+
add_step(Procedures::Packages::EnableModules.new(:module_names => modules_to_enable))
|
61
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
62
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
63
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
64
|
+
add_step(Procedures::Installer::UpgradeRakeTask)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
class PostMigrations < Abstract
|
69
|
+
upgrade_metadata do
|
70
|
+
description 'Procedures after migrating to Satellite 6.13.z'
|
71
|
+
tags :post_migrations
|
72
|
+
end
|
73
|
+
|
74
|
+
def compose
|
75
|
+
add_step(Procedures::RefreshFeatures)
|
76
|
+
add_step(Procedures::Service::Start.new)
|
77
|
+
add_step(Procedures::Pulpcore::TrimRpmChangelogs.new)
|
78
|
+
add_steps(find_procedures(:post_migrations))
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
class PostUpgradeChecks < Abstract
|
83
|
+
upgrade_metadata do
|
84
|
+
description 'Checks after upgrading to Satellite 6.13.z'
|
85
|
+
tags :post_upgrade_checks
|
86
|
+
run_strategy :fail_slow
|
87
|
+
end
|
88
|
+
|
89
|
+
def compose
|
90
|
+
add_steps(find_checks(:default))
|
91
|
+
add_steps(find_checks(:post_upgrade))
|
92
|
+
end
|
93
|
+
end
|
94
|
+
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.3
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- definitions/features/pulpcore_database.rb
|
224
224
|
- definitions/features/puppet_server.rb
|
225
225
|
- definitions/features/redis.rb
|
226
|
+
- definitions/features/salt_server.rb
|
226
227
|
- definitions/features/satellite.rb
|
227
228
|
- definitions/features/service.rb
|
228
229
|
- definitions/features/sync_plans.rb
|
@@ -350,6 +351,8 @@ files:
|
|
350
351
|
- definitions/scenarios/upgrade_to_capsule_6_11_z.rb
|
351
352
|
- definitions/scenarios/upgrade_to_capsule_6_12.rb
|
352
353
|
- definitions/scenarios/upgrade_to_capsule_6_12_z.rb
|
354
|
+
- definitions/scenarios/upgrade_to_capsule_6_13.rb
|
355
|
+
- definitions/scenarios/upgrade_to_capsule_6_13_z.rb
|
353
356
|
- definitions/scenarios/upgrade_to_capsule_6_8.rb
|
354
357
|
- definitions/scenarios/upgrade_to_capsule_6_8_z.rb
|
355
358
|
- definitions/scenarios/upgrade_to_capsule_6_9.rb
|
@@ -362,6 +365,8 @@ files:
|
|
362
365
|
- definitions/scenarios/upgrade_to_satellite_6_11_z.rb
|
363
366
|
- definitions/scenarios/upgrade_to_satellite_6_12.rb
|
364
367
|
- definitions/scenarios/upgrade_to_satellite_6_12_z.rb
|
368
|
+
- definitions/scenarios/upgrade_to_satellite_6_13.rb
|
369
|
+
- definitions/scenarios/upgrade_to_satellite_6_13_z.rb
|
365
370
|
- definitions/scenarios/upgrade_to_satellite_6_2.rb
|
366
371
|
- definitions/scenarios/upgrade_to_satellite_6_2_z.rb
|
367
372
|
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
@@ -490,7 +495,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
490
495
|
- !ruby/object:Gem::Version
|
491
496
|
version: '0'
|
492
497
|
requirements: []
|
493
|
-
rubygems_version: 3.
|
498
|
+
rubygems_version: 3.3.26
|
494
499
|
signing_key:
|
495
500
|
specification_version: 4
|
496
501
|
summary: Foreman maintenance tool belt
|