foreman_maintain 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/bin/foreman-maintain +1 -1
- data/bin/foreman-maintain-complete +5 -5
- data/definitions/checks/backup/directory_ready.rb +3 -1
- data/definitions/checks/candlepin/db_up.rb +1 -1
- data/definitions/checks/candlepin/validate_db.rb +2 -9
- data/definitions/checks/check_for_newer_packages.rb +5 -5
- data/definitions/checks/check_hotfix_installed.rb +3 -7
- data/definitions/checks/disk/available_space_postgresql12.rb +3 -2
- data/definitions/checks/disk/performance.rb +3 -3
- data/definitions/checks/foreman/check_corrupted_roles.rb +2 -4
- data/definitions/checks/foreman/check_duplicate_permission.rb +1 -1
- data/definitions/checks/foreman/check_duplicate_roles.rb +1 -1
- data/definitions/checks/foreman/check_tuning_requirements.rb +1 -1
- data/definitions/checks/foreman/db_up.rb +1 -1
- data/definitions/checks/foreman/facts_names.rb +4 -4
- data/definitions/checks/foreman_openscap/invalid_report_associations.rb +4 -4
- data/definitions/checks/foreman_proxy/check_tftp_storage.rb +4 -4
- data/definitions/checks/foreman_proxy/verify_dhcp_config_syntax.rb +1 -2
- data/definitions/checks/foreman_tasks/invalid/check_old.rb +2 -2
- data/definitions/checks/foreman_tasks/invalid/check_pending_state.rb +2 -2
- data/definitions/checks/foreman_tasks/invalid/check_planning_state.rb +2 -2
- data/definitions/checks/foreman_tasks/not_paused.rb +2 -2
- data/definitions/checks/foreman_tasks/not_running.rb +6 -6
- data/definitions/checks/original_assets.rb +3 -3
- data/definitions/checks/package_manager/yum/validate_yum_config.rb +1 -1
- data/definitions/checks/pulpcore/db_up.rb +1 -1
- data/definitions/checks/repositories/check_upstream_repository.rb +2 -2
- data/definitions/checks/repositories/validate.rb +2 -2
- data/definitions/checks/restore/validate_backup.rb +2 -2
- data/definitions/checks/restore/validate_hostname.rb +2 -2
- data/definitions/checks/restore/validate_interfaces.rb +2 -2
- data/definitions/checks/restore/validate_postgresql_dump_permissions.rb +31 -0
- data/definitions/checks/services_up.rb +2 -2
- data/definitions/features/apache.rb +1 -1
- data/definitions/features/candlepin.rb +1 -1
- data/definitions/features/candlepin_database.rb +2 -4
- data/definitions/features/cron.rb +3 -5
- data/definitions/features/dynflow_sidekiq.rb +2 -2
- data/definitions/features/foreman_cockpit.rb +1 -1
- data/definitions/features/foreman_database.rb +1 -1
- data/definitions/features/foreman_proxy.rb +1 -1
- data/definitions/features/foreman_server.rb +3 -7
- data/definitions/features/foreman_tasks.rb +9 -12
- data/definitions/features/gofer.rb +1 -1
- data/definitions/features/hammer.rb +4 -4
- data/definitions/features/installer.rb +4 -5
- data/definitions/features/instance.rb +12 -14
- data/definitions/features/katello.rb +8 -12
- data/definitions/features/pulpcore.rb +6 -30
- data/definitions/features/pulpcore_database.rb +3 -1
- data/definitions/features/puppet_server.rb +1 -1
- data/definitions/features/redis.rb +2 -18
- data/definitions/features/salt_server.rb +1 -1
- data/definitions/features/service.rb +4 -48
- data/definitions/features/sync_plans.rb +2 -2
- data/definitions/features/tar.rb +4 -3
- data/definitions/procedures/backup/compress_data.rb +0 -1
- data/definitions/procedures/backup/config_files.rb +6 -5
- data/definitions/procedures/backup/prepare_directory.rb +0 -2
- data/definitions/procedures/backup/pulp.rb +3 -3
- data/definitions/procedures/backup/snapshot/clean_mount.rb +1 -1
- data/definitions/procedures/backup/snapshot/logical_volume_confirmation.rb +1 -2
- data/definitions/procedures/backup/snapshot/mount_pulp.rb +2 -2
- data/definitions/procedures/foreman/fix_corrupted_roles.rb +3 -3
- data/definitions/procedures/foreman_tasks/delete.rb +3 -3
- data/definitions/procedures/hammer_setup.rb +1 -1
- data/definitions/procedures/knowledge_base_article.rb +3 -4
- data/definitions/procedures/packages/enable_modules.rb +1 -1
- data/definitions/procedures/packages/install.rb +1 -1
- data/definitions/procedures/packages/uninstall.rb +1 -1
- data/definitions/procedures/packages/update.rb +6 -2
- data/definitions/procedures/pulpcore/migrate.rb +2 -3
- data/definitions/procedures/pulpcore/trim_rpm_changelogs.rb +2 -3
- data/definitions/procedures/remote_execution/remove_existing_settingsd.rb +2 -2
- data/definitions/procedures/repositories/enable.rb +1 -1
- data/definitions/procedures/repositories/setup.rb +2 -2
- data/definitions/procedures/restore/candlepin_dump.rb +2 -2
- data/definitions/procedures/restore/configs.rb +3 -10
- data/definitions/procedures/restore/drop_databases.rb +2 -2
- data/definitions/procedures/restore/extract_files.rb +4 -17
- data/definitions/procedures/restore/foreman_dump.rb +2 -2
- data/definitions/procedures/restore/installer_reset.rb +1 -2
- data/definitions/procedures/restore/postgres_owner.rb +2 -2
- data/definitions/procedures/restore/pulpcore_dump.rb +2 -2
- data/definitions/procedures/selinux/set_file_security.rb +2 -2
- data/definitions/procedures/service/restart.rb +2 -3
- data/definitions/scenarios/backup.rb +47 -65
- data/definitions/scenarios/packages.rb +9 -9
- data/definitions/scenarios/restore.rb +24 -40
- data/definitions/scenarios/self_upgrade.rb +7 -11
- data/definitions/scenarios/services.rb +17 -17
- data/definitions/scenarios/upgrade_to_capsule_6_14.rb +3 -2
- data/definitions/scenarios/upgrade_to_capsule_6_14_z.rb +3 -2
- data/definitions/scenarios/upgrade_to_katello_nightly.rb +3 -0
- data/definitions/scenarios/upgrade_to_satellite_6_14.rb +3 -2
- data/definitions/scenarios/upgrade_to_satellite_6_14_z.rb +3 -2
- data/extras/foreman_protector/dnf/foreman-protector.py +4 -4
- data/extras/foreman_protector/foreman-protector.whitelist +0 -6
- data/lib/foreman_maintain/cli/advanced/prebuild_bash_completion.rb +1 -1
- data/lib/foreman_maintain/cli/advanced_command.rb +2 -2
- data/lib/foreman_maintain/cli/backup_command.rb +17 -17
- data/lib/foreman_maintain/cli/base.rb +13 -13
- data/lib/foreman_maintain/cli/maintenance_mode_command.rb +1 -1
- data/lib/foreman_maintain/cli/plugin_command.rb +1 -1
- data/lib/foreman_maintain/cli/restore_command.rb +4 -4
- data/lib/foreman_maintain/cli/self_upgrade_command.rb +2 -2
- data/lib/foreman_maintain/cli/service_command.rb +2 -2
- data/lib/foreman_maintain/cli/transform_clamp_options.rb +1 -1
- data/lib/foreman_maintain/cli/upgrade_command.rb +7 -7
- data/lib/foreman_maintain/cli.rb +1 -11
- data/lib/foreman_maintain/concerns/base_database.rb +8 -17
- data/lib/foreman_maintain/concerns/downstream.rb +6 -64
- data/lib/foreman_maintain/concerns/firewall/iptables_maintenance_mode.rb +1 -1
- data/lib/foreman_maintain/concerns/foreman_and_katello_version_map.rb +1 -1
- data/lib/foreman_maintain/concerns/os_facts.rb +0 -8
- data/lib/foreman_maintain/concerns/primary_checks.rb +6 -5
- data/lib/foreman_maintain/concerns/pulp_common.rb +5 -8
- data/lib/foreman_maintain/concerns/system_helpers.rb +3 -6
- data/lib/foreman_maintain/concerns/upstream.rb +3 -3
- data/lib/foreman_maintain/config.rb +7 -7
- data/lib/foreman_maintain/core_ext.rb +2 -2
- data/lib/foreman_maintain/executable.rb +7 -9
- data/lib/foreman_maintain/package_manager/apt.rb +2 -2
- data/lib/foreman_maintain/package_manager/base.rb +0 -2
- data/lib/foreman_maintain/package_manager/dnf.rb +2 -2
- data/lib/foreman_maintain/package_manager/yum.rb +3 -4
- data/lib/foreman_maintain/package_manager.rb +7 -9
- data/lib/foreman_maintain/param.rb +2 -2
- data/lib/foreman_maintain/reporter/cli_reporter.rb +6 -7
- data/lib/foreman_maintain/reporter.rb +15 -10
- data/lib/foreman_maintain/repository_manager/el.rb +2 -10
- data/lib/foreman_maintain/repository_manager.rb +2 -1
- data/lib/foreman_maintain/runner.rb +5 -5
- data/lib/foreman_maintain/scenario.rb +4 -2
- data/lib/foreman_maintain/upgrade_runner.rb +0 -2
- data/lib/foreman_maintain/utils/backup.rb +27 -111
- data/lib/foreman_maintain/utils/bash.rb +18 -19
- data/lib/foreman_maintain/utils/command_runner.rb +5 -9
- data/lib/foreman_maintain/utils/hash_tools.rb +5 -5
- data/lib/foreman_maintain/utils/response.rb +1 -0
- data/lib/foreman_maintain/utils/service/remote_db.rb +1 -0
- data/lib/foreman_maintain/utils/service/systemd.rb +7 -5
- data/lib/foreman_maintain/utils/service.rb +1 -1
- data/lib/foreman_maintain/utils.rb +0 -1
- data/lib/foreman_maintain/version.rb +1 -1
- data/lib/foreman_maintain/yaml_storage.rb +1 -0
- data/lib/foreman_maintain.rb +7 -6
- metadata +29 -78
- data/definitions/checks/foreman/check_https_proxies.rb +0 -34
- data/definitions/checks/mongo/db_up.rb +0 -33
- data/definitions/checks/mongo/tools_installed.rb +0 -31
- data/definitions/checks/pulpcore/group_ownership_check.rb +0 -18
- data/definitions/checks/puppet/provide_upgrade_guide.rb +0 -35
- data/definitions/checks/puppet/warn_about_puppet_removal.rb +0 -35
- data/definitions/checks/remote_execution/verify_settings_file_already_exists.rb +0 -42
- data/definitions/features/mongo.rb +0 -217
- data/definitions/features/pulp2.rb +0 -35
- data/definitions/procedures/backup/offline/mongo.rb +0 -56
- data/definitions/procedures/backup/online/mongo.rb +0 -21
- data/definitions/procedures/backup/snapshot/mount_mongo.rb +0 -43
- data/definitions/procedures/candlepin/delete_orphaned_records_from_env_content.rb +0 -40
- data/definitions/procedures/content/fix_pulpcore_artifact_permissions.rb +0 -31
- data/definitions/procedures/content/migration_reset.rb +0 -12
- data/definitions/procedures/content/migration_stats.rb +0 -12
- data/definitions/procedures/content/prepare.rb +0 -17
- data/definitions/procedures/content/prepare_abort.rb +0 -12
- data/definitions/procedures/content/switchover.rb +0 -41
- data/definitions/procedures/prep_6_10_upgrade.rb +0 -29
- data/definitions/procedures/pulp/cleanup_old_metadata_files.rb +0 -75
- data/definitions/procedures/pulp/migrate.rb +0 -23
- data/definitions/procedures/pulp/print_remove_instructions.rb +0 -16
- data/definitions/procedures/pulp/remove.rb +0 -222
- data/definitions/procedures/restore/ensure_mongo_engine_matches.rb +0 -35
- data/definitions/procedures/restore/mongo_dump.rb +0 -41
- data/definitions/procedures/restore/regenerate_queues.rb +0 -69
- data/definitions/scenarios/content.rb +0 -158
- data/definitions/scenarios/prep_6_10_upgrade.rb +0 -13
- data/definitions/scenarios/upgrade_to_capsule_6_10.rb +0 -89
- data/definitions/scenarios/upgrade_to_capsule_6_10_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_capsule_6_11.rb +0 -91
- data/definitions/scenarios/upgrade_to_capsule_6_11_z.rb +0 -90
- data/definitions/scenarios/upgrade_to_capsule_6_12.rb +0 -92
- data/definitions/scenarios/upgrade_to_capsule_6_12_z.rb +0 -92
- data/definitions/scenarios/upgrade_to_capsule_6_13.rb +0 -92
- data/definitions/scenarios/upgrade_to_capsule_6_13_z.rb +0 -92
- data/definitions/scenarios/upgrade_to_capsule_6_8.rb +0 -88
- data/definitions/scenarios/upgrade_to_capsule_6_8_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_capsule_6_9.rb +0 -88
- data/definitions/scenarios/upgrade_to_capsule_6_9_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_10.rb +0 -113
- data/definitions/scenarios/upgrade_to_satellite_6_10_z.rb +0 -89
- data/definitions/scenarios/upgrade_to_satellite_6_11.rb +0 -96
- data/definitions/scenarios/upgrade_to_satellite_6_11_z.rb +0 -91
- data/definitions/scenarios/upgrade_to_satellite_6_12.rb +0 -95
- data/definitions/scenarios/upgrade_to_satellite_6_12_z.rb +0 -94
- data/definitions/scenarios/upgrade_to_satellite_6_13.rb +0 -95
- data/definitions/scenarios/upgrade_to_satellite_6_13_z.rb +0 -94
- data/definitions/scenarios/upgrade_to_satellite_6_2.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_2_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_3.rb +0 -89
- data/definitions/scenarios/upgrade_to_satellite_6_3_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_4.rb +0 -89
- data/definitions/scenarios/upgrade_to_satellite_6_4_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_5.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_5_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_6.rb +0 -90
- data/definitions/scenarios/upgrade_to_satellite_6_6_z.rb +0 -90
- data/definitions/scenarios/upgrade_to_satellite_6_7.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_7_z.rb +0 -88
- data/definitions/scenarios/upgrade_to_satellite_6_8.rb +0 -91
- data/definitions/scenarios/upgrade_to_satellite_6_8_z.rb +0 -89
- data/definitions/scenarios/upgrade_to_satellite_6_9.rb +0 -91
- data/definitions/scenarios/upgrade_to_satellite_6_9_z.rb +0 -89
- data/lib/foreman_maintain/cli/content_command.rb +0 -69
- data/lib/foreman_maintain/utils/mongo_core.rb +0 -86
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_6_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.6' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.6.z')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.6.z'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.6.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::Repositories::Validate.new(:version => '6.6'))
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class PreMigrations < Abstract
|
|
35
|
-
upgrade_metadata do
|
|
36
|
-
description 'Procedures before migrating to Satellite 6.6.z'
|
|
37
|
-
tags :pre_migrations
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def compose
|
|
41
|
-
add_steps(find_procedures(:pre_migrations))
|
|
42
|
-
add_step(Procedures::Service::Stop.new)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Migrations < Abstract
|
|
47
|
-
upgrade_metadata do
|
|
48
|
-
description 'Migration scripts to Satellite 6.6.z'
|
|
49
|
-
tags :migrations
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_context_mapping
|
|
53
|
-
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def compose
|
|
57
|
-
add_step(Procedures::Repositories::Setup.new(:version => '6.6'))
|
|
58
|
-
add_step(Procedures::Packages::UnlockVersions.new)
|
|
59
|
-
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
|
60
|
-
add_step_with_context(Procedures::Installer::Upgrade)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
class PostMigrations < Abstract
|
|
65
|
-
upgrade_metadata do
|
|
66
|
-
description 'Procedures after migrating to Satellite 6.6.z'
|
|
67
|
-
tags :post_migrations
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def compose
|
|
71
|
-
add_step(Procedures::ForemanDocker::RemoveForemanDocker.new)
|
|
72
|
-
add_step(Procedures::Foreman::ApipieCache.new)
|
|
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 Satellite 6.6.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
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_7
|
|
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.6' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.7')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.7'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.7'
|
|
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::Repositories::Validate.new(:version => '6.7'))
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class PreMigrations < Abstract
|
|
35
|
-
upgrade_metadata do
|
|
36
|
-
description 'Procedures before migrating to Satellite 6.7'
|
|
37
|
-
tags :pre_migrations
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def compose
|
|
41
|
-
add_steps(find_procedures(:pre_migrations))
|
|
42
|
-
add_step(Procedures::Service::Stop.new)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Migrations < Abstract
|
|
47
|
-
upgrade_metadata do
|
|
48
|
-
description 'Migration scripts to Satellite 6.7'
|
|
49
|
-
tags :migrations
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_context_mapping
|
|
53
|
-
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def compose
|
|
57
|
-
add_step(Procedures::Repositories::Setup.new(:version => '6.7'))
|
|
58
|
-
add_step(Procedures::Packages::UnlockVersions.new)
|
|
59
|
-
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
|
60
|
-
add_step_with_context(Procedures::Installer::Upgrade)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
class PostMigrations < Abstract
|
|
65
|
-
upgrade_metadata do
|
|
66
|
-
description 'Procedures after migrating to Satellite 6.7'
|
|
67
|
-
tags :post_migrations
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def compose
|
|
71
|
-
add_step(Procedures::Service::Start.new)
|
|
72
|
-
add_steps(find_procedures(:post_migrations))
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
class PostUpgradeChecks < Abstract
|
|
77
|
-
upgrade_metadata do
|
|
78
|
-
description 'Checks after upgrading to Satellite 6.7'
|
|
79
|
-
tags :post_upgrade_checks
|
|
80
|
-
run_strategy :fail_slow
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def compose
|
|
84
|
-
add_steps(find_checks(:default))
|
|
85
|
-
add_steps(find_checks(:post_upgrade))
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_7_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.7' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.7.z')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.7.z'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.7.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::Repositories::Validate.new(:version => '6.7'))
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class PreMigrations < Abstract
|
|
35
|
-
upgrade_metadata do
|
|
36
|
-
description 'Procedures before migrating to Satellite 6.7.z'
|
|
37
|
-
tags :pre_migrations
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def compose
|
|
41
|
-
add_steps(find_procedures(:pre_migrations))
|
|
42
|
-
add_step(Procedures::Service::Stop.new)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Migrations < Abstract
|
|
47
|
-
upgrade_metadata do
|
|
48
|
-
description 'Migration scripts to Satellite 6.7.z'
|
|
49
|
-
tags :migrations
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_context_mapping
|
|
53
|
-
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def compose
|
|
57
|
-
add_step(Procedures::Repositories::Setup.new(:version => '6.7'))
|
|
58
|
-
add_step(Procedures::Packages::UnlockVersions.new)
|
|
59
|
-
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
|
60
|
-
add_step_with_context(Procedures::Installer::Upgrade)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
class PostMigrations < Abstract
|
|
65
|
-
upgrade_metadata do
|
|
66
|
-
description 'Procedures after migrating to Satellite 6.7.z'
|
|
67
|
-
tags :post_migrations
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
def compose
|
|
71
|
-
add_step(Procedures::Service::Start.new)
|
|
72
|
-
add_steps(find_procedures(:post_migrations))
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
class PostUpgradeChecks < Abstract
|
|
77
|
-
upgrade_metadata do
|
|
78
|
-
description 'Checks after upgrading to Satellite 6.7.z'
|
|
79
|
-
tags :post_upgrade_checks
|
|
80
|
-
run_strategy :fail_slow
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
def compose
|
|
84
|
-
add_steps(find_checks(:default))
|
|
85
|
-
add_steps(find_checks(:post_upgrade))
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
end
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_8
|
|
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.7' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.8')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.8'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.8'
|
|
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::Disk::AvailableSpacePostgresql12)
|
|
32
|
-
add_step(Checks::Repositories::Validate.new(:version => '6.8'))
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
class PreMigrations < Abstract
|
|
37
|
-
upgrade_metadata do
|
|
38
|
-
description 'Procedures before migrating to Satellite 6.8'
|
|
39
|
-
tags :pre_migrations
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def compose
|
|
43
|
-
add_steps(find_procedures(:pre_migrations))
|
|
44
|
-
add_step(Procedures::Service::Stop.new)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
class Migrations < Abstract
|
|
49
|
-
upgrade_metadata do
|
|
50
|
-
description 'Migration scripts to Satellite 6.8'
|
|
51
|
-
tags :migrations
|
|
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.8'))
|
|
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.8'
|
|
70
|
-
tags :post_migrations
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def compose
|
|
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.8'
|
|
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
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_8_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.8' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.8.z')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.8.z'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.8.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::Repositories::Validate.new(:version => '6.8'))
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class PreMigrations < Abstract
|
|
35
|
-
upgrade_metadata do
|
|
36
|
-
description 'Procedures before migrating to Satellite 6.8.z'
|
|
37
|
-
tags :pre_migrations
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def compose
|
|
41
|
-
add_steps(find_procedures(:pre_migrations))
|
|
42
|
-
add_step(Procedures::Service::Stop.new)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Migrations < Abstract
|
|
47
|
-
upgrade_metadata do
|
|
48
|
-
description 'Migration scripts to Satellite 6.8.z'
|
|
49
|
-
tags :migrations
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_context_mapping
|
|
53
|
-
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def compose
|
|
57
|
-
add_step(Procedures::Repositories::Setup.new(:version => '6.8'))
|
|
58
|
-
add_step(Procedures::Packages::UnlockVersions.new)
|
|
59
|
-
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
|
60
|
-
add_step_with_context(Procedures::Installer::Upgrade)
|
|
61
|
-
add_step(Procedures::Installer::UpgradeRakeTask)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
class PostMigrations < Abstract
|
|
66
|
-
upgrade_metadata do
|
|
67
|
-
description 'Procedures after migrating to Satellite 6.8.z'
|
|
68
|
-
tags :post_migrations
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def compose
|
|
72
|
-
add_step(Procedures::Service::Start.new)
|
|
73
|
-
add_steps(find_procedures(:post_migrations))
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class PostUpgradeChecks < Abstract
|
|
78
|
-
upgrade_metadata do
|
|
79
|
-
description 'Checks after upgrading to Satellite 6.8.z'
|
|
80
|
-
tags :post_upgrade_checks
|
|
81
|
-
run_strategy :fail_slow
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def compose
|
|
85
|
-
add_steps(find_checks(:default))
|
|
86
|
-
add_steps(find_checks(:post_upgrade))
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_9
|
|
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.8' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.9')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.9'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.9'
|
|
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::Disk::AvailableSpacePostgresql12)
|
|
32
|
-
add_step(Checks::Repositories::Validate.new(:version => '6.9'))
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
class PreMigrations < Abstract
|
|
37
|
-
upgrade_metadata do
|
|
38
|
-
description 'Procedures before migrating to Satellite 6.9'
|
|
39
|
-
tags :pre_migrations
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def compose
|
|
43
|
-
add_steps(find_procedures(:pre_migrations))
|
|
44
|
-
add_step(Procedures::Service::Stop.new)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
class Migrations < Abstract
|
|
49
|
-
upgrade_metadata do
|
|
50
|
-
description 'Migration scripts to Satellite 6.9'
|
|
51
|
-
tags :migrations
|
|
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.9'))
|
|
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.9'
|
|
70
|
-
tags :post_migrations
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def compose
|
|
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.9'
|
|
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
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
module Scenarios::Satellite_6_9_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.9' || \
|
|
9
|
-
ForemanMaintain.upgrade_in_progress == '6.9.z')
|
|
10
|
-
end
|
|
11
|
-
instance_eval(&block)
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def target_version
|
|
16
|
-
'6.9.z'
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
class PreUpgradeCheck < Abstract
|
|
21
|
-
upgrade_metadata do
|
|
22
|
-
description 'Checks before upgrading to Satellite 6.9.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::Repositories::Validate.new(:version => '6.9'))
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class PreMigrations < Abstract
|
|
35
|
-
upgrade_metadata do
|
|
36
|
-
description 'Procedures before migrating to Satellite 6.9.z'
|
|
37
|
-
tags :pre_migrations
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def compose
|
|
41
|
-
add_steps(find_procedures(:pre_migrations))
|
|
42
|
-
add_step(Procedures::Service::Stop.new)
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
class Migrations < Abstract
|
|
47
|
-
upgrade_metadata do
|
|
48
|
-
description 'Migration scripts to Satellite 6.9.z'
|
|
49
|
-
tags :migrations
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def set_context_mapping
|
|
53
|
-
context.map(:assumeyes, Procedures::Installer::Upgrade => :assumeyes)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def compose
|
|
57
|
-
add_step(Procedures::Repositories::Setup.new(:version => '6.9'))
|
|
58
|
-
add_step(Procedures::Packages::UnlockVersions.new)
|
|
59
|
-
add_step(Procedures::Packages::Update.new(:assumeyes => true))
|
|
60
|
-
add_step_with_context(Procedures::Installer::Upgrade)
|
|
61
|
-
add_step(Procedures::Installer::UpgradeRakeTask)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
class PostMigrations < Abstract
|
|
66
|
-
upgrade_metadata do
|
|
67
|
-
description 'Procedures after migrating to Satellite 6.9.z'
|
|
68
|
-
tags :post_migrations
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def compose
|
|
72
|
-
add_step(Procedures::Service::Start.new)
|
|
73
|
-
add_steps(find_procedures(:post_migrations))
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
class PostUpgradeChecks < Abstract
|
|
78
|
-
upgrade_metadata do
|
|
79
|
-
description 'Checks after upgrading to Satellite 6.9.z'
|
|
80
|
-
tags :post_upgrade_checks
|
|
81
|
-
run_strategy :fail_slow
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def compose
|
|
85
|
-
add_steps(find_checks(:default))
|
|
86
|
-
add_steps(find_checks(:post_upgrade))
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
module ForemanMaintain
|
|
2
|
-
module Cli
|
|
3
|
-
class ContentCommand < Base
|
|
4
|
-
subcommand 'prepare', 'Prepare content for Pulp 3' do
|
|
5
|
-
option ['-q', '--quiet'], :flag, 'Keep the output on a single line'
|
|
6
|
-
def execute
|
|
7
|
-
run_scenarios_and_exit(Scenarios::Content::Prepare.new(:quiet => quiet?))
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
unless ForemanMaintain.detector.feature(:satellite) ||
|
|
12
|
-
ForemanMaintain.detector.feature(:capsule)
|
|
13
|
-
subcommand 'switchover', 'Switch support for certain content from Pulp 2 to Pulp 3' do
|
|
14
|
-
def execute
|
|
15
|
-
run_scenarios_and_exit(Scenarios::Content::Switchover.new)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
subcommand 'prepare-abort', 'Abort all running Pulp 2 to Pulp 3 migration tasks' do
|
|
21
|
-
def execute
|
|
22
|
-
run_scenarios_and_exit(Scenarios::Content::PrepareAbort.new)
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
subcommand 'migration-stats', 'Retrieve Pulp 2 to Pulp 3 migration statistics' do
|
|
27
|
-
def execute
|
|
28
|
-
run_scenarios_and_exit(Scenarios::Content::MigrationStats.new)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
subcommand 'migration-reset', 'Reset the Pulp 2 to Pulp 3 migration data (pre-switchover)' do
|
|
33
|
-
def execute
|
|
34
|
-
run_scenarios_and_exit(Scenarios::Content::MigrationReset.new)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
subcommand 'cleanup-repository-metadata', 'Cleanup old repository metadata under Pulp 2' do
|
|
39
|
-
option ['-r', '--remove-files'], :flag, 'Remove the files instead of just listing them.',
|
|
40
|
-
:attribute_name => :remove_files
|
|
41
|
-
|
|
42
|
-
def execute
|
|
43
|
-
run_scenarios_and_exit(
|
|
44
|
-
Scenarios::Content::CleanupRepositoryMetadata.new(:remove_files => @remove_files)
|
|
45
|
-
)
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
subcommand 'remove-pulp2', 'Remove pulp2 and mongodb packages and data' do
|
|
50
|
-
interactive_option(%w[assumeyes plaintext])
|
|
51
|
-
def execute
|
|
52
|
-
run_scenarios_and_exit(
|
|
53
|
-
Scenarios::Content::RemovePulp2.new(:assumeyes => assumeyes?)
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
subcommand 'fix-pulpcore-artifact-ownership',
|
|
59
|
-
'Update filesystem ownership for Pulpcore artifacts' do
|
|
60
|
-
interactive_option(%w[assumeyes plaintext])
|
|
61
|
-
def execute
|
|
62
|
-
run_scenarios_and_exit(
|
|
63
|
-
Scenarios::Content::FixPulpcoreArtifactOwnership.new(:assumeyes => assumeyes?)
|
|
64
|
-
)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|