foreman_maintain 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/procedures/foreman_maintain_features.rb +10 -0
- data/definitions/scenarios/self_upgrade.rb +1 -1
- data/lib/foreman_maintain/concerns/system_helpers.rb +1 -1
- data/lib/foreman_maintain/version.rb +1 -1
- data/lib/foreman_maintain.rb +1 -1
- metadata +3 -6
- data/definitions/scenarios/upgrade_to_capsule_6_14.rb +0 -92
- data/definitions/scenarios/upgrade_to_capsule_6_14_z.rb +0 -92
- data/definitions/scenarios/upgrade_to_satellite_6_14.rb +0 -94
- data/definitions/scenarios/upgrade_to_satellite_6_14_z.rb +0 -93
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83e212f9fbf31738c939454ad7978b9d29beb66b66cbfb5d905e2a15aebe1af
|
4
|
+
data.tar.gz: b09528f68095f1139ab66e1dbdb7587e79b1c7d5e135626f94e60f7abb17e393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69809841cb9ede602ae08a7c3c57b777be895aa80795ecc6293961f5411ae3fd5872b7f1eb5f0ad8c06e33a0ee594897e1d08413866ecfbf34daf941db07a742
|
7
|
+
data.tar.gz: 00cd8080285c9e9a2809de32bb500585c641fdd740dd23895ee02f8767540be97cf36d1c34790a25bbfbc20071b782124a30ea185dd16dd62d8f83b8d6e3208b
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Procedures::ForemanMaintainFeatures < ForemanMaintain::Procedure
|
2
|
+
metadata do
|
3
|
+
description 'List detected Foreman Maintain features'
|
4
|
+
end
|
5
|
+
|
6
|
+
def run
|
7
|
+
features = ForemanMaintain.available_features
|
8
|
+
output << features.map(&:inspect).join("\n")
|
9
|
+
end
|
10
|
+
end
|
@@ -108,7 +108,7 @@ module ForemanMaintain::Scenarios
|
|
108
108
|
end
|
109
109
|
|
110
110
|
def compose
|
111
|
-
pkgs_to_update =
|
111
|
+
pkgs_to_update = [ForemanMaintain.main_package_name]
|
112
112
|
if feature(:instance).downstream
|
113
113
|
pkgs_to_update << 'satellite-maintain'
|
114
114
|
downstream_self_upgrade(pkgs_to_update)
|
data/lib/foreman_maintain.rb
CHANGED
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.8
|
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-03-
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- definitions/procedures/foreman/remove_duplicate_obsolete_roles.rb
|
270
270
|
- definitions/procedures/foreman/remove_duplicate_permissions.rb
|
271
271
|
- definitions/procedures/foreman_docker/remove_foreman_docker.rb
|
272
|
+
- definitions/procedures/foreman_maintain_features.rb
|
272
273
|
- definitions/procedures/foreman_openscap/invalid_report_associations.rb
|
273
274
|
- definitions/procedures/foreman_proxy/features.rb
|
274
275
|
- definitions/procedures/foreman_tasks/delete.rb
|
@@ -353,8 +354,6 @@ files:
|
|
353
354
|
- definitions/scenarios/upgrade_to_capsule_6_12_z.rb
|
354
355
|
- definitions/scenarios/upgrade_to_capsule_6_13.rb
|
355
356
|
- definitions/scenarios/upgrade_to_capsule_6_13_z.rb
|
356
|
-
- definitions/scenarios/upgrade_to_capsule_6_14.rb
|
357
|
-
- definitions/scenarios/upgrade_to_capsule_6_14_z.rb
|
358
357
|
- definitions/scenarios/upgrade_to_capsule_6_8.rb
|
359
358
|
- definitions/scenarios/upgrade_to_capsule_6_8_z.rb
|
360
359
|
- definitions/scenarios/upgrade_to_capsule_6_9.rb
|
@@ -369,8 +368,6 @@ files:
|
|
369
368
|
- definitions/scenarios/upgrade_to_satellite_6_12_z.rb
|
370
369
|
- definitions/scenarios/upgrade_to_satellite_6_13.rb
|
371
370
|
- definitions/scenarios/upgrade_to_satellite_6_13_z.rb
|
372
|
-
- definitions/scenarios/upgrade_to_satellite_6_14.rb
|
373
|
-
- definitions/scenarios/upgrade_to_satellite_6_14_z.rb
|
374
371
|
- definitions/scenarios/upgrade_to_satellite_6_2.rb
|
375
372
|
- definitions/scenarios/upgrade_to_satellite_6_2_z.rb
|
376
373
|
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
@@ -1,92 +0,0 @@
|
|
1
|
-
module Scenarios::Capsule_6_14
|
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.14')
|
10
|
-
end
|
11
|
-
instance_eval(&block)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def target_version
|
16
|
-
'6.14'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
class PreUpgradeCheck < Abstract
|
21
|
-
upgrade_metadata do
|
22
|
-
description 'Checks before upgrading to Capsule 6.14'
|
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.14'))
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class PreMigrations < Abstract
|
36
|
-
upgrade_metadata do
|
37
|
-
description 'Procedures before migrating to Capsule 6.14'
|
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.14'
|
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.14'))
|
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.14'
|
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.14'
|
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
|
@@ -1,92 +0,0 @@
|
|
1
|
-
module Scenarios::Capsule_6_14_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.14' || \
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.14.z')
|
10
|
-
end
|
11
|
-
instance_eval(&block)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def target_version
|
16
|
-
'6.14.z'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
class PreUpgradeCheck < Abstract
|
21
|
-
upgrade_metadata do
|
22
|
-
description 'Checks before upgrading to Capsule 6.14.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.14'))
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class PreMigrations < Abstract
|
36
|
-
upgrade_metadata do
|
37
|
-
description 'Procedures before migrating to Capsule 6.14.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.14.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.14'))
|
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.14.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.14.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
|
@@ -1,94 +0,0 @@
|
|
1
|
-
module Scenarios::Satellite_6_14
|
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.14')
|
10
|
-
end
|
11
|
-
instance_eval(&block)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def target_version
|
16
|
-
'6.14'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
class PreUpgradeCheck < Abstract
|
21
|
-
upgrade_metadata do
|
22
|
-
description 'Checks before upgrading to Satellite 6.14'
|
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.14'))
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class PreMigrations < Abstract
|
36
|
-
upgrade_metadata do
|
37
|
-
description 'Procedures before migrating to Satellite 6.14'
|
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.14'
|
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.14'))
|
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.14'
|
72
|
-
tags :post_migrations
|
73
|
-
end
|
74
|
-
|
75
|
-
def compose
|
76
|
-
add_step(Procedures::RefreshFeatures)
|
77
|
-
add_step(Procedures::Service::Start.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.14'
|
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
|
@@ -1,93 +0,0 @@
|
|
1
|
-
module Scenarios::Satellite_6_14_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.14' || \
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.14.z')
|
10
|
-
end
|
11
|
-
instance_eval(&block)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def target_version
|
16
|
-
'6.14.z'
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
class PreUpgradeCheck < Abstract
|
21
|
-
upgrade_metadata do
|
22
|
-
description 'Checks before upgrading to Satellite 6.14.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.14'))
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class PreMigrations < Abstract
|
36
|
-
upgrade_metadata do
|
37
|
-
description 'Procedures before migrating to Satellite 6.14.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.14.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.14'))
|
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.14.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_steps(find_procedures(:post_migrations))
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
class PostUpgradeChecks < Abstract
|
82
|
-
upgrade_metadata do
|
83
|
-
description 'Checks after upgrading to Satellite 6.14.z'
|
84
|
-
tags :post_upgrade_checks
|
85
|
-
run_strategy :fail_slow
|
86
|
-
end
|
87
|
-
|
88
|
-
def compose
|
89
|
-
add_steps(find_checks(:default))
|
90
|
-
add_steps(find_checks(:post_upgrade))
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|