foreman_maintain 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/procedures/backup/online/safety_confirmation.rb +1 -1
- data/definitions/procedures/content/fix_pulpcore_artifact_permissions.rb +2 -1
- data/definitions/scenarios/upgrade_to_capsule_6_11.rb +1 -0
- data/definitions/scenarios/upgrade_to_capsule_6_11_z.rb +1 -0
- data/definitions/scenarios/upgrade_to_capsule_6_12.rb +90 -0
- data/definitions/scenarios/upgrade_to_capsule_6_12_z.rb +90 -0
- data/definitions/scenarios/upgrade_to_satellite_6_11.rb +1 -0
- data/definitions/scenarios/upgrade_to_satellite_6_11_z.rb +1 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12.rb +92 -0
- data/definitions/scenarios/upgrade_to_satellite_6_12_z.rb +91 -0
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5168b856e2af86bdafed767d362dae19556dcc0b72d6e5e600f097b195de2ed
|
4
|
+
data.tar.gz: 4399bf04c5108dd0e63cdd917c27238d10952fc962a44ffcf6cf18b628d439f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b7212318f4d888fdca2d01685466dace2b65a1a9d0147f733ccc12e2f41d9a83244f13195836ba465a5280819d687de41b3d89092d94bb22af8b8cedc9df20
|
7
|
+
data.tar.gz: 4b03699dad54a36fff8b765e1d3cbc673da5dae0e012de3fccd42623f9bba4dd2110cceae92c0826b0e7b72933705764e1507f3f5869e13801588f8fc9b28bb9
|
@@ -19,7 +19,7 @@ module Procedures::Backup
|
|
19
19
|
'*** for debugging purposes only.' \
|
20
20
|
" The backup routine can not ensure 100% consistency while the\n" \
|
21
21
|
"*** backup is taking place as there is a chance there may be data mismatch between\n" \
|
22
|
-
'***
|
22
|
+
'*** the databases while the services are live.' \
|
23
23
|
" If you wish to utilize the #{substr}\n" \
|
24
24
|
'*** for production use you need to ensure that there are' \
|
25
25
|
" no modifications occurring during\n" \
|
@@ -5,7 +5,8 @@ module Procedures::Content
|
|
5
5
|
param :assumeyes, 'Do not ask for confirmation', :default => false
|
6
6
|
|
7
7
|
confine do
|
8
|
-
check_min_version(foreman_plugin_name('katello'), '4.0')
|
8
|
+
check_min_version(foreman_plugin_name('katello'), '4.0') &&
|
9
|
+
Dir.exist?('/var/lib/pulp/media/artifact')
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
@@ -40,6 +40,7 @@ module Scenarios::Capsule_6_11
|
|
40
40
|
def compose
|
41
41
|
add_steps(find_procedures(:pre_migrations))
|
42
42
|
add_step(Procedures::Pulp::Remove.new(:assumeyes => true))
|
43
|
+
add_step(Procedures::Content::FixPulpcoreArtifactOwnership.new(:assumeyes => true))
|
43
44
|
add_step(Procedures::Service::Stop.new)
|
44
45
|
end
|
45
46
|
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module Scenarios::Capsule_6_12
|
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.11' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.12')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.12'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Capsule 6.12'
|
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.12'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Capsule 6.12'
|
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.12'
|
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.12'))
|
59
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
60
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
class PostMigrations < Abstract
|
66
|
+
upgrade_metadata do
|
67
|
+
description 'Procedures after migrating to Capsule 6.12'
|
68
|
+
tags :post_migrations
|
69
|
+
end
|
70
|
+
|
71
|
+
def compose
|
72
|
+
add_step(Procedures::RefreshFeatures)
|
73
|
+
add_step(Procedures::Service::Start.new)
|
74
|
+
add_steps(find_procedures(:post_migrations))
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class PostUpgradeChecks < Abstract
|
79
|
+
upgrade_metadata do
|
80
|
+
description 'Checks after upgrading to Capsule 6.12'
|
81
|
+
tags :post_upgrade_checks
|
82
|
+
run_strategy :fail_slow
|
83
|
+
end
|
84
|
+
|
85
|
+
def compose
|
86
|
+
add_steps(find_checks(:default))
|
87
|
+
add_steps(find_checks(:post_upgrade))
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
module Scenarios::Capsule_6_12_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.12' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.12.z')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.12.z'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Capsule 6.12.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.12'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Capsule 6.12.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.12.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.12'))
|
59
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
60
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
class PostMigrations < Abstract
|
66
|
+
upgrade_metadata do
|
67
|
+
description 'Procedures after migrating to Capsule 6.12.z'
|
68
|
+
tags :post_migrations
|
69
|
+
end
|
70
|
+
|
71
|
+
def compose
|
72
|
+
add_step(Procedures::RefreshFeatures)
|
73
|
+
add_step(Procedures::Service::Start.new)
|
74
|
+
add_steps(find_procedures(:post_migrations))
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class PostUpgradeChecks < Abstract
|
79
|
+
upgrade_metadata do
|
80
|
+
description 'Checks after upgrading to Capsule 6.12.z'
|
81
|
+
tags :post_upgrade_checks
|
82
|
+
run_strategy :fail_slow
|
83
|
+
end
|
84
|
+
|
85
|
+
def compose
|
86
|
+
add_steps(find_checks(:default))
|
87
|
+
add_steps(find_checks(:post_upgrade))
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -42,6 +42,7 @@ module Scenarios::Satellite_6_11
|
|
42
42
|
def compose
|
43
43
|
add_steps(find_procedures(:pre_migrations))
|
44
44
|
add_step(Procedures::Pulp::Remove.new(:assumeyes => true))
|
45
|
+
add_step(Procedures::Content::FixPulpcoreArtifactOwnership.new(:assumeyes => true))
|
45
46
|
add_step(Procedures::Service::Stop.new)
|
46
47
|
end
|
47
48
|
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module Scenarios::Satellite_6_12
|
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.11' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.12')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.12'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Satellite 6.12'
|
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.12'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Satellite 6.12'
|
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.12'
|
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.12'))
|
60
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
61
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
62
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
63
|
+
add_step(Procedures::Installer::UpgradeRakeTask)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class PostMigrations < Abstract
|
68
|
+
upgrade_metadata do
|
69
|
+
description 'Procedures after migrating to Satellite 6.12'
|
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 Satellite 6.12'
|
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,91 @@
|
|
1
|
+
module Scenarios::Satellite_6_12_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.12' || \
|
9
|
+
ForemanMaintain.upgrade_in_progress == '6.12.z')
|
10
|
+
end
|
11
|
+
instance_eval(&block)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def target_version
|
16
|
+
'6.12.z'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PreUpgradeCheck < Abstract
|
21
|
+
upgrade_metadata do
|
22
|
+
description 'Checks before upgrading to Satellite 6.12.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.12'))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class PreMigrations < Abstract
|
36
|
+
upgrade_metadata do
|
37
|
+
description 'Procedures before migrating to Satellite 6.12.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.12.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.12'))
|
59
|
+
add_step(Procedures::Packages::UnlockVersions.new)
|
60
|
+
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
61
|
+
add_step_with_context(Procedures::Installer::Upgrade)
|
62
|
+
add_step(Procedures::Installer::UpgradeRakeTask)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class PostMigrations < Abstract
|
67
|
+
upgrade_metadata do
|
68
|
+
description 'Procedures after migrating to Satellite 6.12.z'
|
69
|
+
tags :post_migrations
|
70
|
+
end
|
71
|
+
|
72
|
+
def compose
|
73
|
+
add_step(Procedures::RefreshFeatures)
|
74
|
+
add_step(Procedures::Service::Start.new)
|
75
|
+
add_steps(find_procedures(:post_migrations))
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
class PostUpgradeChecks < Abstract
|
80
|
+
upgrade_metadata do
|
81
|
+
description 'Checks after upgrading to Satellite 6.12.z'
|
82
|
+
tags :post_upgrade_checks
|
83
|
+
run_strategy :fail_slow
|
84
|
+
end
|
85
|
+
|
86
|
+
def compose
|
87
|
+
add_steps(find_checks(:default))
|
88
|
+
add_steps(find_checks(:post_upgrade))
|
89
|
+
end
|
90
|
+
end
|
91
|
+
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.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -332,6 +332,8 @@ files:
|
|
332
332
|
- definitions/scenarios/upgrade_to_capsule_6_10_z.rb
|
333
333
|
- definitions/scenarios/upgrade_to_capsule_6_11.rb
|
334
334
|
- definitions/scenarios/upgrade_to_capsule_6_11_z.rb
|
335
|
+
- definitions/scenarios/upgrade_to_capsule_6_12.rb
|
336
|
+
- definitions/scenarios/upgrade_to_capsule_6_12_z.rb
|
335
337
|
- definitions/scenarios/upgrade_to_capsule_6_8.rb
|
336
338
|
- definitions/scenarios/upgrade_to_capsule_6_8_z.rb
|
337
339
|
- definitions/scenarios/upgrade_to_capsule_6_9.rb
|
@@ -340,6 +342,8 @@ files:
|
|
340
342
|
- definitions/scenarios/upgrade_to_satellite_6_10_z.rb
|
341
343
|
- definitions/scenarios/upgrade_to_satellite_6_11.rb
|
342
344
|
- definitions/scenarios/upgrade_to_satellite_6_11_z.rb
|
345
|
+
- definitions/scenarios/upgrade_to_satellite_6_12.rb
|
346
|
+
- definitions/scenarios/upgrade_to_satellite_6_12_z.rb
|
343
347
|
- definitions/scenarios/upgrade_to_satellite_6_2.rb
|
344
348
|
- definitions/scenarios/upgrade_to_satellite_6_2_z.rb
|
345
349
|
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
@@ -450,7 +454,7 @@ homepage: https://github.com/theforeman/foreman_maintain
|
|
450
454
|
licenses:
|
451
455
|
- GPL-3.0
|
452
456
|
metadata: {}
|
453
|
-
post_install_message:
|
457
|
+
post_install_message:
|
454
458
|
rdoc_options: []
|
455
459
|
require_paths:
|
456
460
|
- lib
|
@@ -465,8 +469,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
465
469
|
- !ruby/object:Gem::Version
|
466
470
|
version: '0'
|
467
471
|
requirements: []
|
468
|
-
rubygems_version: 3.
|
469
|
-
signing_key:
|
472
|
+
rubygems_version: 3.3.7
|
473
|
+
signing_key:
|
470
474
|
specification_version: 4
|
471
475
|
summary: Foreman maintenance tool belt
|
472
476
|
test_files: []
|