foreman_maintain 0.5.4 → 0.6.4
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 +4 -0
- data/definitions/checks/check_hotfix_installed.rb +2 -1
- data/definitions/checks/disk/performance.rb +25 -10
- data/definitions/checks/foreman/validate_external_db_version.rb +28 -0
- data/definitions/checks/original_assets.rb +1 -0
- data/definitions/checks/pulpcore/db_up.rb +29 -0
- data/definitions/checks/repositories/check_non_rh_repository.rb +23 -0
- data/definitions/checks/repositories/check_upstream_repository.rb +2 -1
- data/definitions/checks/repositories/validate.rb +2 -1
- data/definitions/features/apache.rb +19 -0
- data/definitions/features/dynflow_sidekiq.rb +39 -0
- data/definitions/features/foreman_database.rb +5 -3
- data/definitions/features/foreman_proxy.rb +15 -4
- data/definitions/features/foreman_server.rb +9 -3
- data/definitions/features/foreman_tasks.rb +1 -1
- data/definitions/features/installer.rb +9 -2
- data/definitions/features/instance.rb +10 -3
- data/definitions/features/mongo.rb +1 -1
- data/definitions/features/{pulp.rb → pulp2.rb} +1 -1
- data/definitions/features/pulpcore.rb +28 -0
- data/definitions/features/pulpcore_database.rb +39 -0
- data/definitions/features/redis.rb +34 -0
- data/definitions/features/service.rb +10 -3
- data/definitions/features/tar.rb +18 -13
- data/definitions/procedures/backup/config_files.rb +43 -10
- data/definitions/procedures/backup/offline/pulpcore_db.rb +57 -0
- data/definitions/procedures/backup/online/pulpcore_db.rb +20 -0
- data/definitions/procedures/backup/pulp.rb +3 -3
- data/definitions/procedures/backup/snapshot/logical_volume_confirmation.rb +2 -1
- data/definitions/procedures/backup/snapshot/mount_pulp.rb +3 -3
- data/definitions/procedures/backup/snapshot/mount_pulpcore_db.rb +48 -0
- data/definitions/procedures/content/prepare.rb +12 -0
- data/definitions/procedures/content/switchover.rb +22 -0
- data/definitions/procedures/hammer_setup.rb +1 -1
- data/definitions/procedures/installer/run.rb +3 -1
- data/definitions/procedures/installer/upgrade.rb +6 -1
- data/definitions/procedures/packages/update.rb +1 -1
- data/definitions/procedures/pulp/migrate.rb +1 -1
- data/definitions/procedures/pulpcore/migrate.rb +25 -0
- data/definitions/procedures/restore/configs.rb +7 -0
- data/definitions/procedures/restore/drop_databases.rb +11 -1
- data/definitions/procedures/restore/mongo_dump.rb +2 -2
- data/definitions/procedures/restore/pulpcore_dump.rb +30 -0
- data/definitions/procedures/service/base.rb +1 -1
- data/definitions/procedures/service/stop.rb +1 -1
- data/definitions/scenarios/backup.rb +18 -3
- data/definitions/scenarios/content.rb +27 -0
- data/definitions/scenarios/packages.rb +36 -16
- data/definitions/scenarios/restore.rb +7 -1
- data/definitions/scenarios/upgrade_to_capsule_6_7.rb +88 -0
- data/definitions/scenarios/upgrade_to_capsule_6_7_z.rb +88 -0
- data/definitions/scenarios/upgrade_to_capsule_6_8.rb +88 -0
- data/definitions/scenarios/upgrade_to_capsule_6_8_z.rb +88 -0
- data/definitions/scenarios/upgrade_to_satellite_6_2.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_2_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_3.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_3_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_4.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_4_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_5.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_5_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_6.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_6_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_7.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_7_z.rb +13 -5
- data/definitions/scenarios/upgrade_to_satellite_6_8.rb +88 -0
- data/definitions/scenarios/upgrade_to_satellite_6_8_z.rb +88 -0
- data/lib/foreman_maintain.rb +31 -0
- data/lib/foreman_maintain/cli.rb +2 -0
- data/lib/foreman_maintain/cli/content_command.rb +17 -0
- data/lib/foreman_maintain/cli/upgrade_command.rb +10 -0
- data/lib/foreman_maintain/concerns/base_database.rb +16 -1
- data/lib/foreman_maintain/concerns/downstream.rb +13 -8
- data/lib/foreman_maintain/concerns/system_helpers.rb +9 -7
- data/lib/foreman_maintain/package_manager/dnf.rb +11 -5
- data/lib/foreman_maintain/package_manager/yum.rb +15 -5
- data/lib/foreman_maintain/reporter/cli_reporter.rb +3 -3
- data/lib/foreman_maintain/upgrade_runner.rb +20 -26
- data/lib/foreman_maintain/utils/backup.rb +58 -62
- data/lib/foreman_maintain/utils/service/abstract.rb +8 -1
- data/lib/foreman_maintain/utils/service/systemd.rb +26 -2
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +26 -4
- data/definitions/checks/check_epel_repository.rb +0 -21
@@ -16,6 +16,9 @@ module ForemanMaintain
|
|
16
16
|
@backup_dir = backup_dir
|
17
17
|
@standard_files = ['config_files.tar.gz']
|
18
18
|
@katello_online_files = ['mongo_dump', 'candlepin.dump', 'foreman.dump']
|
19
|
+
if feature(:pulpcore)
|
20
|
+
@katello_online_files << 'pulpcore.dump'
|
21
|
+
end
|
19
22
|
@katello_offline_files = ['mongo_data.tar.gz', 'pgsql_data.tar.gz']
|
20
23
|
@foreman_online_files = ['foreman.dump']
|
21
24
|
@foreman_offline_files = ['pgsql_data.tar.gz']
|
@@ -35,6 +38,10 @@ module ForemanMaintain
|
|
35
38
|
:pg_globals => map_file(@backup_dir, 'pg_globals.dump'),
|
36
39
|
:metadata => map_file(@backup_dir, 'metadata.yml')
|
37
40
|
}
|
41
|
+
if feature(:pulpcore)
|
42
|
+
@file_map[:pulpcore_dump] = map_file(@backup_dir, 'pulpcore.dump')
|
43
|
+
end
|
44
|
+
@file_map
|
38
45
|
end
|
39
46
|
|
40
47
|
def map_file(backup_dir, filename)
|
@@ -77,92 +84,80 @@ module ForemanMaintain
|
|
77
84
|
foreman_standard_backup? || foreman_online_backup? || foreman_logical_backup?
|
78
85
|
end
|
79
86
|
|
87
|
+
def check_file_existence(existence_map)
|
88
|
+
unless feature(:pulpcore)
|
89
|
+
existence_map[:present].delete(:pulpcore_dump)
|
90
|
+
existence_map[:absent].delete(:pulpcore_dump)
|
91
|
+
end
|
92
|
+
|
93
|
+
existence_map[:present].each do |file|
|
94
|
+
unless file_map[file][:present]
|
95
|
+
return false
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
existence_map[:absent].each do |file|
|
100
|
+
if file_map[file][:present]
|
101
|
+
return false
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# TODO: Need to check for pulpcore feature?
|
80
109
|
def katello_standard_backup?
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
file_map[:candlepin_dump][:present] ||
|
85
|
-
file_map[:foreman_dump][:present] ||
|
86
|
-
file_map[:mongo_dump][:present]
|
87
|
-
)
|
110
|
+
check_file_existence(:present => [:mongo_data, :pgsql_data],
|
111
|
+
:absent => [:candlepin_dump, :foreman_dump,
|
112
|
+
:pulpcore_dump, :mongo_dump])
|
88
113
|
end
|
89
114
|
|
90
115
|
def katello_online_backup?
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
!(
|
95
|
-
file_map[:mongo_data][:present] ||
|
96
|
-
file_map[:pgsql_data][:present]
|
97
|
-
)
|
116
|
+
check_file_existence(:present => [:candlepin_dump, :foreman_dump,
|
117
|
+
:pulpcore_dump, :mongo_dump],
|
118
|
+
:absent => [:mongo_data, :pgsql_data])
|
98
119
|
end
|
99
120
|
|
100
121
|
def katello_logical_backup?
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
file_map[:candlepin_dump][:present] &&
|
105
|
-
file_map[:foreman_dump][:present]
|
122
|
+
check_file_existence(:present => [:mongo_dump, :mongo_data, :pgsql_data,
|
123
|
+
:candlepin_dump, :pulpcore_dump, :foreman_dump],
|
124
|
+
:absent => [])
|
106
125
|
end
|
107
126
|
|
108
127
|
def fpc_standard_backup?
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
file_map[:candlepin_dump][:present] ||
|
113
|
-
file_map[:foreman_dump][:present] ||
|
114
|
-
file_map[:mongo_dump][:present]
|
115
|
-
)
|
128
|
+
check_file_existence(:present => [:mongo_data],
|
129
|
+
:absent => [:pgsql_data, :candlepin_dump,
|
130
|
+
:foreman_dump, :mongo_dump, :pulpcore_dump])
|
116
131
|
end
|
117
132
|
|
118
133
|
def fpc_online_backup?
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
file_map[:candlepin_dump][:present] ||
|
124
|
-
file_map[:foreman_dump][:present]
|
125
|
-
)
|
134
|
+
absent = [:mongo_data, :pgsql_data, :candlepin_dump, :foreman_dump]
|
135
|
+
|
136
|
+
check_file_existence(:present => [:mongo_dump], :absent => absent) ||
|
137
|
+
check_file_existence(:present => [:pulpcore_dump], :absent => absent)
|
126
138
|
end
|
127
139
|
|
128
140
|
def fpc_logical_backup?
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
file_map[:pgsql_data][:present] ||
|
133
|
-
file_map[:candlepin_dump][:present] ||
|
134
|
-
file_map[:foreman_dump][:present]
|
135
|
-
)
|
141
|
+
absent = [:pgsql_data, :candlepin_dump, :foreman_dump]
|
142
|
+
check_file_existence(:present => [:mongo_dump, :mongo_data], :absent => absent) ||
|
143
|
+
check_file_existence(:present => [:pulpcore_dump], :absent => absent)
|
136
144
|
end
|
137
145
|
|
138
146
|
def foreman_standard_backup?
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
file_map[:foreman_dump][:present] ||
|
143
|
-
file_map[:mongo_data][:present] ||
|
144
|
-
file_map[:mongo_dump][:present]
|
145
|
-
)
|
147
|
+
check_file_existence(:present => [:pgsql_data],
|
148
|
+
:absent => [:candlepin_dump, :foreman_dump, :pulpcore_dump,
|
149
|
+
:mongo_data, :mongo_dump])
|
146
150
|
end
|
147
151
|
|
148
152
|
def foreman_online_backup?
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
file_map[:pgsql_data][:present] ||
|
153
|
-
file_map[:mongo_data][:present] ||
|
154
|
-
file_map[:mongo_dump][:present]
|
155
|
-
)
|
153
|
+
check_file_existence(:present => [:foreman_dump],
|
154
|
+
:absent => [:candlepin_dump, :pgsql_data,
|
155
|
+
:mongo_data, :mongo_dump])
|
156
156
|
end
|
157
157
|
|
158
158
|
def foreman_logical_backup?
|
159
|
-
|
160
|
-
|
161
|
-
!(
|
162
|
-
file_map[:candlepin_dump][:present] ||
|
163
|
-
file_map[:mongo_data][:present] ||
|
164
|
-
file_map[:mongo_dump][:present]
|
165
|
-
)
|
159
|
+
check_file_existence(:present => [:pgsql_data, :foreman_dump],
|
160
|
+
:absent => [:candlepin_dump, :mongo_data, :mongo_dump])
|
166
161
|
end
|
167
162
|
|
168
163
|
def validate_hostname?
|
@@ -202,7 +197,8 @@ module ForemanMaintain
|
|
202
197
|
|
203
198
|
def sql_dump_files_exist?
|
204
199
|
file_map[:foreman_dump][:present] ||
|
205
|
-
file_map[:candlepin_dump][:present]
|
200
|
+
file_map[:candlepin_dump][:present] ||
|
201
|
+
(feature(:pulpcore) && file_map[:pulpcore_dump][:present])
|
206
202
|
end
|
207
203
|
|
208
204
|
def incremental?
|
@@ -4,9 +4,16 @@ module ForemanMaintain::Utils
|
|
4
4
|
include Comparable
|
5
5
|
attr_reader :name, :priority
|
6
6
|
|
7
|
-
def initialize(name, priority,
|
7
|
+
def initialize(name, priority, options = {})
|
8
8
|
@name = name
|
9
9
|
@priority = priority
|
10
|
+
@options = options
|
11
|
+
end
|
12
|
+
|
13
|
+
def socket
|
14
|
+
if @options[:socket]
|
15
|
+
self.class.new("#{@options[:socket]}.socket", priority)
|
16
|
+
end
|
10
17
|
end
|
11
18
|
|
12
19
|
def <=>(other)
|
@@ -1,17 +1,26 @@
|
|
1
1
|
module ForemanMaintain::Utils
|
2
2
|
module Service
|
3
3
|
class Systemd < Abstract
|
4
|
-
def initialize(name, priority,
|
4
|
+
def initialize(name, priority, options = {})
|
5
5
|
super
|
6
6
|
@sys = SystemHelpers.new
|
7
7
|
end
|
8
8
|
|
9
9
|
def command(action, options = {})
|
10
10
|
do_wait = options.fetch(:wait, true) # wait for service to start
|
11
|
+
all = @options.fetch(:all, false)
|
12
|
+
skip_enablement = @options.fetch(:skip_enablement, false)
|
13
|
+
|
14
|
+
if skip_enablement && %w[enable disable].include?(action)
|
15
|
+
return skip_enablement_message(action, @name)
|
16
|
+
end
|
17
|
+
|
11
18
|
if do_wait && File.exist?('/usr/sbin/service-wait')
|
12
19
|
"service-wait #{@name} #{action}"
|
13
20
|
else
|
14
|
-
"systemctl #{action} #{@name}"
|
21
|
+
cmd = "systemctl #{action} #{@name}"
|
22
|
+
cmd += ' --all' if all
|
23
|
+
cmd
|
15
24
|
end
|
16
25
|
end
|
17
26
|
|
@@ -53,6 +62,21 @@ module ForemanMaintain::Utils
|
|
53
62
|
def execute(action, options = {})
|
54
63
|
@sys.execute_with_status(command(action, options))
|
55
64
|
end
|
65
|
+
|
66
|
+
def skip_enablement_message(action, name)
|
67
|
+
# Enable and disable does not work well with globs since they treat them literally.
|
68
|
+
# We are skipping the pulpcore-workers@* for these actions until they are configured in
|
69
|
+
# a more managable way with systemd
|
70
|
+
# rubocop:disable Layout/IndentAssignment
|
71
|
+
msg =
|
72
|
+
"
|
73
|
+
\nWARNING: Skipping #{action} for #{name} as there are a variable amount of services to manage
|
74
|
+
and this command will not respond to glob operators. These services have been configured by
|
75
|
+
the installer and it is recommended to keep them enabled to prevent misconfiguration.\n
|
76
|
+
"
|
77
|
+
# rubocop:enable Layout/IndentAssignment
|
78
|
+
puts msg
|
79
|
+
end
|
56
80
|
end
|
57
81
|
end
|
58
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: 0.
|
4
|
+
version: 0.6.4
|
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: 2020-05-
|
11
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- definitions/checks/backup/directory_ready.rb
|
123
123
|
- definitions/checks/candlepin/db_up.rb
|
124
124
|
- definitions/checks/candlepin/validate_db.rb
|
125
|
-
- definitions/checks/check_epel_repository.rb
|
126
125
|
- definitions/checks/check_hotfix_installed.rb
|
127
126
|
- definitions/checks/check_tmout.rb
|
128
127
|
- definitions/checks/disk/available_space.rb
|
@@ -132,6 +131,7 @@ files:
|
|
132
131
|
- definitions/checks/foreman/db_up.rb
|
133
132
|
- definitions/checks/foreman/facts_names.rb
|
134
133
|
- definitions/checks/foreman/puppet_class_duplicates.rb
|
134
|
+
- definitions/checks/foreman/validate_external_db_version.rb
|
135
135
|
- definitions/checks/foreman_openscap/invalid_report_associations.rb
|
136
136
|
- definitions/checks/foreman_proxy/verify_dhcp_config_syntax.rb
|
137
137
|
- definitions/checks/foreman_tasks/invalid/check_old.rb
|
@@ -143,9 +143,11 @@ files:
|
|
143
143
|
- definitions/checks/mongo/db_up.rb
|
144
144
|
- definitions/checks/mongo/tools_installed.rb
|
145
145
|
- definitions/checks/original_assets.rb
|
146
|
+
- definitions/checks/pulpcore/db_up.rb
|
146
147
|
- definitions/checks/puppet/provide_upgrade_guide.rb
|
147
148
|
- definitions/checks/puppet/verify_no_empty_cacert_requests.rb
|
148
149
|
- definitions/checks/remote_execution/verify_settings_file_already_exists.rb
|
150
|
+
- definitions/checks/repositories/check_non_rh_repository.rb
|
149
151
|
- definitions/checks/repositories/check_upstream_repository.rb
|
150
152
|
- definitions/checks/repositories/validate.rb
|
151
153
|
- definitions/checks/restore/validate_backup.rb
|
@@ -156,10 +158,12 @@ files:
|
|
156
158
|
- definitions/checks/system_registration.rb
|
157
159
|
- definitions/checks/version_locking_enabled.rb
|
158
160
|
- definitions/checks/yum_exclude.rb
|
161
|
+
- definitions/features/apache.rb
|
159
162
|
- definitions/features/candlepin.rb
|
160
163
|
- definitions/features/candlepin_database.rb
|
161
164
|
- definitions/features/capsule.rb
|
162
165
|
- definitions/features/cron.rb
|
166
|
+
- definitions/features/dynflow_sidekiq.rb
|
163
167
|
- definitions/features/foreman_1_11_x.rb
|
164
168
|
- definitions/features/foreman_1_7_x.rb
|
165
169
|
- definitions/features/foreman_database.rb
|
@@ -174,8 +178,11 @@ files:
|
|
174
178
|
- definitions/features/iptables.rb
|
175
179
|
- definitions/features/katello.rb
|
176
180
|
- definitions/features/mongo.rb
|
177
|
-
- definitions/features/
|
181
|
+
- definitions/features/pulp2.rb
|
182
|
+
- definitions/features/pulpcore.rb
|
183
|
+
- definitions/features/pulpcore_database.rb
|
178
184
|
- definitions/features/puppet_server.rb
|
185
|
+
- definitions/features/redis.rb
|
179
186
|
- definitions/features/satellite.rb
|
180
187
|
- definitions/features/service.rb
|
181
188
|
- definitions/features/sync_plans.rb
|
@@ -190,10 +197,12 @@ files:
|
|
190
197
|
- definitions/procedures/backup/offline/candlepin_db.rb
|
191
198
|
- definitions/procedures/backup/offline/foreman_db.rb
|
192
199
|
- definitions/procedures/backup/offline/mongo.rb
|
200
|
+
- definitions/procedures/backup/offline/pulpcore_db.rb
|
193
201
|
- definitions/procedures/backup/online/candlepin_db.rb
|
194
202
|
- definitions/procedures/backup/online/foreman_db.rb
|
195
203
|
- definitions/procedures/backup/online/mongo.rb
|
196
204
|
- definitions/procedures/backup/online/pg_global_objects.rb
|
205
|
+
- definitions/procedures/backup/online/pulpcore_db.rb
|
197
206
|
- definitions/procedures/backup/online/safety_confirmation.rb
|
198
207
|
- definitions/procedures/backup/prepare_directory.rb
|
199
208
|
- definitions/procedures/backup/pulp.rb
|
@@ -204,8 +213,11 @@ files:
|
|
204
213
|
- definitions/procedures/backup/snapshot/mount_foreman_db.rb
|
205
214
|
- definitions/procedures/backup/snapshot/mount_mongo.rb
|
206
215
|
- definitions/procedures/backup/snapshot/mount_pulp.rb
|
216
|
+
- definitions/procedures/backup/snapshot/mount_pulpcore_db.rb
|
207
217
|
- definitions/procedures/backup/snapshot/prepare_mount.rb
|
208
218
|
- definitions/procedures/candlepin/delete_orphaned_records_from_env_content.rb
|
219
|
+
- definitions/procedures/content/prepare.rb
|
220
|
+
- definitions/procedures/content/switchover.rb
|
209
221
|
- definitions/procedures/crond/start.rb
|
210
222
|
- definitions/procedures/crond/stop.rb
|
211
223
|
- definitions/procedures/files/remove.rb
|
@@ -236,6 +248,7 @@ files:
|
|
236
248
|
- definitions/procedures/packages/update_all_confirmation.rb
|
237
249
|
- definitions/procedures/passenger_recycler.rb
|
238
250
|
- definitions/procedures/pulp/migrate.rb
|
251
|
+
- definitions/procedures/pulpcore/migrate.rb
|
239
252
|
- definitions/procedures/puppet/delete_empty_ca_cert_request_files.rb
|
240
253
|
- definitions/procedures/remote_execution/remove_existing_settingsd.rb
|
241
254
|
- definitions/procedures/repositories/disable.rb
|
@@ -251,6 +264,7 @@ files:
|
|
251
264
|
- definitions/procedures/restore/mongo_dump.rb
|
252
265
|
- definitions/procedures/restore/pg_global_objects.rb
|
253
266
|
- definitions/procedures/restore/postgres_owner.rb
|
267
|
+
- definitions/procedures/restore/pulpcore_dump.rb
|
254
268
|
- definitions/procedures/selinux/set_file_security.rb
|
255
269
|
- definitions/procedures/service/base.rb
|
256
270
|
- definitions/procedures/service/daemon_reload.rb
|
@@ -264,10 +278,15 @@ files:
|
|
264
278
|
- definitions/procedures/sync_plans/disable.rb
|
265
279
|
- definitions/procedures/sync_plans/enable.rb
|
266
280
|
- definitions/scenarios/backup.rb
|
281
|
+
- definitions/scenarios/content.rb
|
267
282
|
- definitions/scenarios/maintenance_mode.rb
|
268
283
|
- definitions/scenarios/packages.rb
|
269
284
|
- definitions/scenarios/restore.rb
|
270
285
|
- definitions/scenarios/services.rb
|
286
|
+
- definitions/scenarios/upgrade_to_capsule_6_7.rb
|
287
|
+
- definitions/scenarios/upgrade_to_capsule_6_7_z.rb
|
288
|
+
- definitions/scenarios/upgrade_to_capsule_6_8.rb
|
289
|
+
- definitions/scenarios/upgrade_to_capsule_6_8_z.rb
|
271
290
|
- definitions/scenarios/upgrade_to_satellite_6_2.rb
|
272
291
|
- definitions/scenarios/upgrade_to_satellite_6_2_z.rb
|
273
292
|
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
@@ -280,6 +299,8 @@ files:
|
|
280
299
|
- definitions/scenarios/upgrade_to_satellite_6_6_z.rb
|
281
300
|
- definitions/scenarios/upgrade_to_satellite_6_7.rb
|
282
301
|
- definitions/scenarios/upgrade_to_satellite_6_7_z.rb
|
302
|
+
- definitions/scenarios/upgrade_to_satellite_6_8.rb
|
303
|
+
- definitions/scenarios/upgrade_to_satellite_6_8_z.rb
|
283
304
|
- extras/foreman-maintain.sh
|
284
305
|
- extras/foreman_protector/foreman-protector.conf
|
285
306
|
- extras/foreman_protector/foreman-protector.py
|
@@ -297,6 +318,7 @@ files:
|
|
297
318
|
- lib/foreman_maintain/cli/advanced_command.rb
|
298
319
|
- lib/foreman_maintain/cli/backup_command.rb
|
299
320
|
- lib/foreman_maintain/cli/base.rb
|
321
|
+
- lib/foreman_maintain/cli/content_command.rb
|
300
322
|
- lib/foreman_maintain/cli/health_command.rb
|
301
323
|
- lib/foreman_maintain/cli/maintenance_mode_command.rb
|
302
324
|
- lib/foreman_maintain/cli/packages_command.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class Checks::CheckEpelRepository < ForemanMaintain::Check
|
2
|
-
metadata do
|
3
|
-
label :check_epel_repository
|
4
|
-
description 'Check if EPEL repository enabled on system'
|
5
|
-
tags :pre_upgrade
|
6
|
-
confine do
|
7
|
-
feature(:instance).downstream
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def run
|
12
|
-
with_spinner('Checking for presence of EPEL repository') do
|
13
|
-
assert(!epel_enabled?, 'System is subscribed to EPEL repository')
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def epel_enabled?
|
18
|
-
system_repos = execute("yum repolist enabled -d 6 -e 0| grep -E 'Repo-baseurl|Repo-id'")
|
19
|
-
system_repos.to_s.match(/\bepel\b/i)
|
20
|
-
end
|
21
|
-
end
|