foreman_maintain 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/definitions/checks/pulpcore/db_up.rb +29 -0
- data/definitions/features/foreman_database.rb +5 -3
- data/definitions/features/foreman_tasks.rb +7 -2
- data/definitions/features/instance.rb +5 -2
- data/definitions/features/{pulp3.rb → pulpcore.rb} +9 -3
- data/definitions/features/pulpcore_database.rb +39 -0
- data/definitions/features/tar.rb +5 -0
- data/definitions/procedures/backup/offline/pulpcore_db.rb +57 -0
- data/definitions/procedures/backup/online/pulpcore_db.rb +20 -0
- data/definitions/procedures/backup/snapshot/logical_volume_confirmation.rb +1 -0
- data/definitions/procedures/backup/snapshot/mount_pulpcore_db.rb +48 -0
- data/definitions/procedures/content/prepare.rb +1 -1
- data/definitions/procedures/content/switchover.rb +18 -0
- data/definitions/procedures/packages/installer_confirmation.rb +1 -1
- data/definitions/procedures/packages/update_all_confirmation.rb +24 -0
- data/definitions/procedures/pulpcore/migrate.rb +25 -0
- data/definitions/procedures/restore/drop_databases.rb +11 -1
- data/definitions/procedures/restore/extract_files.rb +1 -0
- data/definitions/procedures/restore/pulpcore_dump.rb +30 -0
- data/definitions/scenarios/backup.rb +18 -3
- data/definitions/scenarios/packages.rb +7 -3
- data/definitions/scenarios/restore.rb +7 -1
- data/extras/foreman_protector/foreman-protector.py +1 -1
- data/lib/foreman_maintain/cli/packages_command.rb +1 -1
- data/lib/foreman_maintain/concerns/base_database.rb +5 -1
- data/lib/foreman_maintain/reporter/cli_reporter.rb +3 -3
- data/lib/foreman_maintain/utils/backup.rb +58 -62
- data/lib/foreman_maintain/utils/disk/io_device.rb +1 -1
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +173 -165
@@ -0,0 +1,30 @@
|
|
1
|
+
module Procedures::Restore
|
2
|
+
class PulpcoreDump < ForemanMaintain::Procedure
|
3
|
+
metadata do
|
4
|
+
description 'Restore pulpcore postgresql dump from backup'
|
5
|
+
param :backup_dir,
|
6
|
+
'Path to backup directory',
|
7
|
+
:required => true
|
8
|
+
preparation_steps { Checks::Pulpcore::DBUp.new }
|
9
|
+
confine do
|
10
|
+
feature(:pulpcore_database)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def run
|
15
|
+
backup = ForemanMaintain::Utils::Backup.new(@backup_dir)
|
16
|
+
|
17
|
+
with_spinner('Restoring pulpcore postgresql dump') do |spinner|
|
18
|
+
restore_pulpcore_dump(backup, spinner)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def restore_pulpcore_dump(backup, spinner)
|
23
|
+
if backup.file_map[:pulpcore_dump][:present]
|
24
|
+
spinner.update('Restoring pulpcore dump')
|
25
|
+
local = feature(:pulpcore_database).local?
|
26
|
+
feature(:pulpcore_database).restore_dump(backup.file_map[:pulpcore_dump][:path], local)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -51,12 +51,15 @@ module ForemanMaintain::Scenarios
|
|
51
51
|
Procedures::Backup::Online::PgGlobalObjects => :backup_dir,
|
52
52
|
Procedures::Backup::Online::CandlepinDB => :backup_dir,
|
53
53
|
Procedures::Backup::Online::ForemanDB => :backup_dir,
|
54
|
+
Procedures::Backup::Online::PulpcoreDB => :backup_dir,
|
54
55
|
Procedures::Backup::Offline::CandlepinDB => :backup_dir,
|
55
56
|
Procedures::Backup::Offline::ForemanDB => :backup_dir,
|
57
|
+
Procedures::Backup::Offline::PulpcoreDB => :backup_dir,
|
56
58
|
Procedures::Backup::Offline::Mongo => :backup_dir,
|
57
59
|
Procedures::Backup::Snapshot::LogicalVolumeConfirmation => :backup_dir,
|
58
60
|
Procedures::Backup::Snapshot::MountCandlepinDB => :backup_dir,
|
59
61
|
Procedures::Backup::Snapshot::MountForemanDB => :backup_dir,
|
62
|
+
Procedures::Backup::Snapshot::MountPulpcoreDB => :backup_dir,
|
60
63
|
Procedures::Backup::Snapshot::MountMongo => :backup_dir)
|
61
64
|
context.map(:preserve_dir,
|
62
65
|
Checks::Backup::DirectoryReady => :preserve_dir,
|
@@ -73,15 +76,18 @@ module ForemanMaintain::Scenarios
|
|
73
76
|
Procedures::Backup::Snapshot::CleanMount => :mount_dir,
|
74
77
|
Procedures::Backup::Snapshot::MountCandlepinDB => :mount_dir,
|
75
78
|
Procedures::Backup::Snapshot::MountForemanDB => :mount_dir,
|
79
|
+
Procedures::Backup::Snapshot::MountPulpcoreDB => :mount_dir,
|
76
80
|
Procedures::Backup::Offline::Mongo => :mount_dir,
|
77
81
|
Procedures::Backup::Pulp => :mount_dir,
|
78
82
|
Procedures::Backup::Offline::CandlepinDB => :mount_dir,
|
79
|
-
Procedures::Backup::Offline::ForemanDB => :mount_dir
|
83
|
+
Procedures::Backup::Offline::ForemanDB => :mount_dir,
|
84
|
+
Procedures::Backup::Offline::PulpcoreDB => :mount_dir)
|
80
85
|
context.map(:snapshot_block_size,
|
81
86
|
Procedures::Backup::Snapshot::MountMongo => :block_size,
|
82
87
|
Procedures::Backup::Snapshot::MountPulp => :block_size,
|
83
88
|
Procedures::Backup::Snapshot::MountForemanDB => :block_size,
|
84
|
-
Procedures::Backup::Snapshot::MountCandlepinDB => :block_size
|
89
|
+
Procedures::Backup::Snapshot::MountCandlepinDB => :block_size,
|
90
|
+
Procedures::Backup::Snapshot::MountPulpcoreDB => :block_size)
|
85
91
|
context.map(:skip_pulp_content,
|
86
92
|
Procedures::Backup::Pulp => :skip,
|
87
93
|
Procedures::Backup::Snapshot::LogicalVolumeConfirmation => :skip_pulp,
|
@@ -135,6 +141,7 @@ module ForemanMaintain::Scenarios
|
|
135
141
|
Procedures::Backup::Offline::Mongo,
|
136
142
|
Procedures::Backup::Offline::CandlepinDB,
|
137
143
|
Procedures::Backup::Offline::ForemanDB,
|
144
|
+
Procedures::Backup::Offline::PulpcoreDB,
|
138
145
|
Procedures::Service::Start,
|
139
146
|
find_procedures(:maintenance_mode_off)
|
140
147
|
)
|
@@ -150,6 +157,9 @@ module ForemanMaintain::Scenarios
|
|
150
157
|
if feature(:instance).database_local?(:foreman_database)
|
151
158
|
add_step_with_context(Procedures::Backup::Online::ForemanDB)
|
152
159
|
end
|
160
|
+
if feature(:instance).database_local?(:pulpcore_database)
|
161
|
+
add_step_with_context(Procedures::Backup::Online::PulpcoreDB)
|
162
|
+
end
|
153
163
|
if feature(:instance).database_local?(:mongo)
|
154
164
|
add_step_with_context(Procedures::Backup::Online::Mongo)
|
155
165
|
end
|
@@ -168,6 +178,7 @@ module ForemanMaintain::Scenarios
|
|
168
178
|
Procedures::Backup::Snapshot::MountPulp,
|
169
179
|
Procedures::Backup::Snapshot::MountCandlepinDB,
|
170
180
|
Procedures::Backup::Snapshot::MountForemanDB,
|
181
|
+
Procedures::Backup::Snapshot::MountPulpcoreDB,
|
171
182
|
Procedures::Service::Start,
|
172
183
|
find_procedures(:maintenance_mode_off),
|
173
184
|
Procedures::Backup::Pulp
|
@@ -178,6 +189,9 @@ module ForemanMaintain::Scenarios
|
|
178
189
|
if feature(:instance).database_local?(:foreman_database)
|
179
190
|
add_step_with_context(Procedures::Backup::Offline::ForemanDB)
|
180
191
|
end
|
192
|
+
if feature(:instance).database_local?(:pulpcore_database)
|
193
|
+
add_step_with_context(Procedures::Backup::Offline::PulpcoreDB)
|
194
|
+
end
|
181
195
|
if feature(:instance).database_local?(:mongo)
|
182
196
|
add_step_with_context(Procedures::Backup::Offline::Mongo)
|
183
197
|
end
|
@@ -192,7 +206,8 @@ module ForemanMaintain::Scenarios
|
|
192
206
|
Procedures::Backup::Online::Mongo,
|
193
207
|
Procedures::Backup::Online::PgGlobalObjects,
|
194
208
|
Procedures::Backup::Online::CandlepinDB,
|
195
|
-
Procedures::Backup::Online::ForemanDB
|
209
|
+
Procedures::Backup::Online::ForemanDB,
|
210
|
+
Procedures::Backup::Online::PulpcoreDB
|
196
211
|
)
|
197
212
|
end
|
198
213
|
|
@@ -71,8 +71,11 @@ module ForemanMaintain::Scenarios
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def compose
|
74
|
-
|
75
|
-
|
74
|
+
add_steps_with_context(
|
75
|
+
Procedures::Packages::UpdateAllConfirmation,
|
76
|
+
Procedures::Packages::InstallerConfirmation,
|
77
|
+
Procedures::Packages::UnlockVersions
|
78
|
+
)
|
76
79
|
add_step_with_context(Procedures::Packages::Update, :force => true, :warn_on_errors => true)
|
77
80
|
add_step_with_context(Procedures::Installer::Run,
|
78
81
|
:arguments => '--upgrade --disable-system-checks')
|
@@ -81,7 +84,8 @@ module ForemanMaintain::Scenarios
|
|
81
84
|
|
82
85
|
def set_context_mapping
|
83
86
|
context.map(:packages,
|
84
|
-
Procedures::Packages::Update => :packages
|
87
|
+
Procedures::Packages::Update => :packages,
|
88
|
+
Procedures::Packages::UpdateAllConfirmation => :packages)
|
85
89
|
context.map(:assumeyes,
|
86
90
|
Procedures::Packages::Update => :assumeyes)
|
87
91
|
end
|
@@ -36,6 +36,7 @@ module ForemanMaintain::Scenarios
|
|
36
36
|
end
|
37
37
|
restore_mongo_dump(backup)
|
38
38
|
add_steps_with_context(Procedures::Pulp::Migrate,
|
39
|
+
Procedures::Pulpcore::Migrate,
|
39
40
|
Procedures::Service::Start,
|
40
41
|
Procedures::Service::DaemonReload)
|
41
42
|
end
|
@@ -43,7 +44,8 @@ module ForemanMaintain::Scenarios
|
|
43
44
|
|
44
45
|
def drop_dbs(backup)
|
45
46
|
if backup.file_map[:candlepin_dump][:present] ||
|
46
|
-
backup.file_map[:foreman_dump][:present]
|
47
|
+
backup.file_map[:foreman_dump][:present] ||
|
48
|
+
(feature(:pulpcore) && backup.file_map[:pulpcore_dump][:present])
|
47
49
|
add_steps_with_context(Procedures::Restore::DropDatabases)
|
48
50
|
end
|
49
51
|
end
|
@@ -58,6 +60,9 @@ module ForemanMaintain::Scenarios
|
|
58
60
|
if backup.file_map[:foreman_dump][:present]
|
59
61
|
add_steps_with_context(Procedures::Restore::ForemanDump)
|
60
62
|
end
|
63
|
+
if feature(:pulpcore) && backup.file_map[:pulpcore_dump][:present]
|
64
|
+
add_steps_with_context(Procedures::Restore::PulpcoreDump)
|
65
|
+
end
|
61
66
|
end
|
62
67
|
|
63
68
|
def restore_mongo_dump(backup)
|
@@ -83,6 +88,7 @@ module ForemanMaintain::Scenarios
|
|
83
88
|
Procedures::Restore::PgGlobalObjects => :backup_dir,
|
84
89
|
Procedures::Restore::CandlepinDump => :backup_dir,
|
85
90
|
Procedures::Restore::ForemanDump => :backup_dir,
|
91
|
+
Procedures::Restore::PulpcoreDump => :backup_dir,
|
86
92
|
Procedures::Restore::ExtractFiles => :backup_dir,
|
87
93
|
Procedures::Restore::MongoDump => :backup_dir)
|
88
94
|
|
@@ -77,7 +77,7 @@ def exclude_hook(conduit):
|
|
77
77
|
else:
|
78
78
|
suffix = ''
|
79
79
|
conduit.info(1, '\n'
|
80
|
-
'WARNING: Excluding %d
|
80
|
+
'WARNING: Excluding %d package%s due to foreman-protector. \n'
|
81
81
|
'Use foreman-maintain packages install/update <package> \n'
|
82
82
|
'to safely install packages without restrictions.\n'
|
83
83
|
'Use foreman-maintain upgrade run for full upgrade.\n'
|
@@ -38,7 +38,7 @@ module ForemanMaintain
|
|
38
38
|
|
39
39
|
subcommand 'update', 'Update packages in an unlocked session' do
|
40
40
|
interactive_option
|
41
|
-
parameter 'PACKAGES ...', 'packages to update', :attribute_name => :packages
|
41
|
+
parameter '[PACKAGES ...]', 'packages to update', :attribute_name => :packages
|
42
42
|
|
43
43
|
def execute
|
44
44
|
run_scenarios_and_exit(
|
@@ -2,7 +2,11 @@ module ForemanMaintain
|
|
2
2
|
module Concerns
|
3
3
|
module BaseDatabase
|
4
4
|
def data_dir
|
5
|
-
'
|
5
|
+
if check_min_version('foreman', '2.0')
|
6
|
+
'/var/opt/rh/rh-postgresql12/lib/pgsql/data/'
|
7
|
+
else
|
8
|
+
'/var/lib/pgsql/data/'
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
8
12
|
def configuration
|
@@ -184,9 +184,9 @@ module ForemanMaintain
|
|
184
184
|
ask_to_select('Select step to continue', steps, &:runtime_message)
|
185
185
|
end
|
186
186
|
|
187
|
-
def ask_decision(message, options = 'y(yes), n(no), q(quit)')
|
188
|
-
if assumeyes?
|
189
|
-
print("#{message} (assuming yes)")
|
187
|
+
def ask_decision(message, options = 'y(yes), n(no), q(quit)', ignore_assumeyes: false)
|
188
|
+
if !ignore_assumeyes && assumeyes?
|
189
|
+
print("#{message} (assuming yes)\n")
|
190
190
|
return :yes
|
191
191
|
end
|
192
192
|
until_valid_decision do
|
@@ -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?
|
@@ -27,7 +27,7 @@ module ForemanMaintain
|
|
27
27
|
# In fio command, --direct option bypass the cache page
|
28
28
|
def fio
|
29
29
|
cmd = "fio --name=job1 --rw=read --size=1g --output-format=json\
|
30
|
-
--directory=#{dir} --direct=1"
|
30
|
+
--directory=#{dir} --direct=1 --unlink=1"
|
31
31
|
stdout = execute(cmd)
|
32
32
|
output = JSON.parse(stdout)
|
33
33
|
@fio ||= output['jobs'].first['read']['bw'].to_i
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_maintain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
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-
|
11
|
+
date: 2020-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: highline
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.17'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.17'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - <
|
87
|
+
- - "<"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 11.0.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - <
|
94
|
+
- - "<"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 11.0.0
|
97
97
|
description: Provides various features that helps keeping the Foreman/Satellite up
|
@@ -107,261 +107,270 @@ extra_rdoc_files:
|
|
107
107
|
- LICENSE
|
108
108
|
- README.md
|
109
109
|
files:
|
110
|
+
- LICENSE
|
111
|
+
- README.md
|
110
112
|
- bin/foreman-maintain
|
111
113
|
- bin/foreman-maintain-complete
|
112
114
|
- bin/foreman-maintain-rotate-tar
|
113
115
|
- bin/passenger-recycler
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
- lib/foreman_maintain/cli/advanced/procedure/by_tag_command.rb
|
126
|
-
- lib/foreman_maintain/cli/advanced/procedure/run_command.rb
|
127
|
-
- lib/foreman_maintain/cli/advanced/procedure_command.rb
|
128
|
-
- lib/foreman_maintain/cli/backup_command.rb
|
129
|
-
- lib/foreman_maintain/cli/packages_command.rb
|
130
|
-
- lib/foreman_maintain/concerns/base_database.rb
|
131
|
-
- lib/foreman_maintain/concerns/directory_marker.rb
|
132
|
-
- lib/foreman_maintain/concerns/finders.rb
|
133
|
-
- lib/foreman_maintain/concerns/hammer.rb
|
134
|
-
- lib/foreman_maintain/concerns/metadata.rb
|
135
|
-
- lib/foreman_maintain/concerns/reporter.rb
|
136
|
-
- lib/foreman_maintain/concerns/scenario_metadata.rb
|
137
|
-
- lib/foreman_maintain/concerns/logger.rb
|
138
|
-
- lib/foreman_maintain/concerns/system_service.rb
|
139
|
-
- lib/foreman_maintain/concerns/downstream.rb
|
140
|
-
- lib/foreman_maintain/concerns/system_helpers.rb
|
141
|
-
- lib/foreman_maintain/reporter/cli_reporter.rb
|
142
|
-
- lib/foreman_maintain/runner/execution.rb
|
143
|
-
- lib/foreman_maintain/runner/stored_execution.rb
|
144
|
-
- lib/foreman_maintain/utils/disk/nil_device.rb
|
145
|
-
- lib/foreman_maintain/utils/disk/device.rb
|
146
|
-
- lib/foreman_maintain/utils/disk/stats.rb
|
147
|
-
- lib/foreman_maintain/utils/disk/io_device.rb
|
148
|
-
- lib/foreman_maintain/utils/curl_response.rb
|
149
|
-
- lib/foreman_maintain/utils/disk.rb
|
150
|
-
- lib/foreman_maintain/utils/facter.rb
|
151
|
-
- lib/foreman_maintain/utils/hash_tools.rb
|
152
|
-
- lib/foreman_maintain/utils/mongo_core.rb
|
153
|
-
- lib/foreman_maintain/utils/service.rb
|
154
|
-
- lib/foreman_maintain/utils/service/remote_db.rb
|
155
|
-
- lib/foreman_maintain/utils/service/abstract.rb
|
156
|
-
- lib/foreman_maintain/utils/service/systemd.rb
|
157
|
-
- lib/foreman_maintain/utils/system_helpers.rb
|
158
|
-
- lib/foreman_maintain/utils/backup.rb
|
159
|
-
- lib/foreman_maintain/utils/bash.rb
|
160
|
-
- lib/foreman_maintain/utils/command_runner.rb
|
161
|
-
- lib/foreman_maintain/utils/response.rb
|
162
|
-
- lib/foreman_maintain/procedure.rb
|
163
|
-
- lib/foreman_maintain/package_manager/base.rb
|
164
|
-
- lib/foreman_maintain/package_manager/yum.rb
|
165
|
-
- lib/foreman_maintain/package_manager/dnf.rb
|
166
|
-
- lib/foreman_maintain/cli.rb
|
167
|
-
- lib/foreman_maintain/version.rb
|
168
|
-
- lib/foreman_maintain/package_manager.rb
|
169
|
-
- lib/foreman_maintain/top_level_modules.rb
|
170
|
-
- lib/foreman_maintain/reporter.rb
|
171
|
-
- lib/foreman_maintain/yaml_storage.rb
|
172
|
-
- lib/foreman_maintain/scenario.rb
|
173
|
-
- lib/foreman_maintain/config.rb
|
174
|
-
- lib/foreman_maintain/runner.rb
|
175
|
-
- lib/foreman_maintain/utils.rb
|
176
|
-
- lib/foreman_maintain/check.rb
|
177
|
-
- lib/foreman_maintain/context.rb
|
178
|
-
- lib/foreman_maintain/core_ext.rb
|
179
|
-
- lib/foreman_maintain/csv_parser.rb
|
180
|
-
- lib/foreman_maintain/dependency_graph.rb
|
181
|
-
- lib/foreman_maintain/error.rb
|
182
|
-
- lib/foreman_maintain/executable.rb
|
183
|
-
- lib/foreman_maintain/param.rb
|
184
|
-
- lib/foreman_maintain/detector.rb
|
185
|
-
- lib/foreman_maintain/feature.rb
|
186
|
-
- lib/foreman_maintain/upgrade_runner.rb
|
187
|
-
- lib/foreman_maintain.rb
|
188
|
-
- definitions/checks/foreman_tasks/invalid/check_old.rb
|
189
|
-
- definitions/checks/foreman_tasks/invalid/check_pending_state.rb
|
190
|
-
- definitions/checks/foreman_tasks/invalid/check_planning_state.rb
|
191
|
-
- definitions/checks/foreman_tasks/not_running.rb
|
192
|
-
- definitions/checks/foreman_tasks/not_paused.rb
|
116
|
+
- config/foreman-maintain.completion
|
117
|
+
- config/foreman_maintain.yml.example
|
118
|
+
- config/foreman_maintain.yml.packaging
|
119
|
+
- config/hammer.yml.example
|
120
|
+
- config/passenger-recycler.yaml
|
121
|
+
- definitions/checks/backup/certs_tar_exist.rb
|
122
|
+
- definitions/checks/backup/directory_ready.rb
|
123
|
+
- definitions/checks/candlepin/db_up.rb
|
124
|
+
- definitions/checks/candlepin/validate_db.rb
|
125
|
+
- definitions/checks/check_epel_repository.rb
|
126
|
+
- definitions/checks/check_hotfix_installed.rb
|
193
127
|
- definitions/checks/check_tmout.rb
|
194
128
|
- definitions/checks/disk/available_space.rb
|
195
129
|
- definitions/checks/disk/performance.rb
|
196
130
|
- definitions/checks/foreman/check_corrupted_roles.rb
|
197
|
-
- definitions/checks/foreman/db_up.rb
|
198
|
-
- definitions/checks/foreman/puppet_class_duplicates.rb
|
199
131
|
- definitions/checks/foreman/check_duplicate_roles.rb
|
132
|
+
- definitions/checks/foreman/db_up.rb
|
200
133
|
- definitions/checks/foreman/facts_names.rb
|
134
|
+
- definitions/checks/foreman/puppet_class_duplicates.rb
|
201
135
|
- definitions/checks/foreman_openscap/invalid_report_associations.rb
|
202
136
|
- definitions/checks/foreman_proxy/verify_dhcp_config_syntax.rb
|
137
|
+
- definitions/checks/foreman_tasks/invalid/check_old.rb
|
138
|
+
- definitions/checks/foreman_tasks/invalid/check_pending_state.rb
|
139
|
+
- definitions/checks/foreman_tasks/invalid/check_planning_state.rb
|
140
|
+
- definitions/checks/foreman_tasks/not_paused.rb
|
141
|
+
- definitions/checks/foreman_tasks/not_running.rb
|
203
142
|
- definitions/checks/maintenance_mode/check_consistency.rb
|
204
143
|
- definitions/checks/mongo/db_up.rb
|
205
144
|
- definitions/checks/mongo/tools_installed.rb
|
206
|
-
- definitions/checks/
|
145
|
+
- definitions/checks/original_assets.rb
|
146
|
+
- definitions/checks/pulpcore/db_up.rb
|
207
147
|
- definitions/checks/puppet/provide_upgrade_guide.rb
|
148
|
+
- definitions/checks/puppet/verify_no_empty_cacert_requests.rb
|
208
149
|
- definitions/checks/remote_execution/verify_settings_file_already_exists.rb
|
209
150
|
- definitions/checks/repositories/check_upstream_repository.rb
|
210
151
|
- definitions/checks/repositories/validate.rb
|
211
152
|
- definitions/checks/restore/validate_backup.rb
|
212
153
|
- definitions/checks/restore/validate_hostname.rb
|
213
154
|
- definitions/checks/root_user.rb
|
214
|
-
- definitions/checks/yum_exclude.rb
|
215
|
-
- definitions/checks/check_epel_repository.rb
|
216
|
-
- definitions/checks/check_hotfix_installed.rb
|
217
155
|
- definitions/checks/server_ping.rb
|
218
156
|
- definitions/checks/services_up.rb
|
219
157
|
- definitions/checks/system_registration.rb
|
220
|
-
- definitions/checks/original_assets.rb
|
221
158
|
- definitions/checks/version_locking_enabled.rb
|
222
|
-
- definitions/checks/
|
223
|
-
- definitions/checks/backup/certs_tar_exist.rb
|
224
|
-
- definitions/checks/candlepin/db_up.rb
|
225
|
-
- definitions/checks/candlepin/validate_db.rb
|
226
|
-
- definitions/features/foreman_1_11_x.rb
|
159
|
+
- definitions/checks/yum_exclude.rb
|
227
160
|
- definitions/features/candlepin.rb
|
228
161
|
- definitions/features/candlepin_database.rb
|
229
|
-
- definitions/features/foreman_database.rb
|
230
|
-
- definitions/features/foreman_openscap.rb
|
231
|
-
- definitions/features/instance.rb
|
232
|
-
- definitions/features/pulp3.rb
|
233
|
-
- definitions/features/installer.rb
|
234
162
|
- definitions/features/capsule.rb
|
235
|
-
- definitions/features/
|
236
|
-
- definitions/features/
|
163
|
+
- definitions/features/cron.rb
|
164
|
+
- definitions/features/dynflow_sidekiq.rb
|
165
|
+
- definitions/features/foreman_1_11_x.rb
|
237
166
|
- definitions/features/foreman_1_7_x.rb
|
167
|
+
- definitions/features/foreman_database.rb
|
168
|
+
- definitions/features/foreman_openscap.rb
|
169
|
+
- definitions/features/foreman_proxy.rb
|
170
|
+
- definitions/features/foreman_server.rb
|
171
|
+
- definitions/features/foreman_tasks.rb
|
238
172
|
- definitions/features/gofer.rb
|
173
|
+
- definitions/features/hammer.rb
|
174
|
+
- definitions/features/installer.rb
|
175
|
+
- definitions/features/instance.rb
|
239
176
|
- definitions/features/iptables.rb
|
177
|
+
- definitions/features/katello.rb
|
178
|
+
- definitions/features/mongo.rb
|
179
|
+
- definitions/features/pulp2.rb
|
180
|
+
- definitions/features/pulpcore.rb
|
181
|
+
- definitions/features/pulpcore_database.rb
|
240
182
|
- definitions/features/puppet_server.rb
|
183
|
+
- definitions/features/redis.rb
|
184
|
+
- definitions/features/satellite.rb
|
185
|
+
- definitions/features/service.rb
|
241
186
|
- definitions/features/sync_plans.rb
|
242
187
|
- definitions/features/system_repos.rb
|
188
|
+
- definitions/features/tar.rb
|
243
189
|
- definitions/features/upstream.rb
|
244
|
-
- definitions/features/satellite.rb
|
245
|
-
- definitions/features/katello.rb
|
246
|
-
- definitions/features/pulp2.rb
|
247
|
-
- definitions/features/foreman_tasks.rb
|
248
|
-
- definitions/features/cron.rb
|
249
|
-
- definitions/features/foreman_server.rb
|
250
|
-
- definitions/features/hammer.rb
|
251
|
-
- definitions/features/service.rb
|
252
|
-
- definitions/features/foreman_proxy.rb
|
253
|
-
- definitions/features/mongo.rb
|
254
|
-
- definitions/features/dynflow_sidekiq.rb
|
255
|
-
- definitions/procedures/foreman_tasks/delete.rb
|
256
|
-
- definitions/procedures/foreman_tasks/fetch_tasks_status.rb
|
257
|
-
- definitions/procedures/foreman_tasks/resume.rb
|
258
|
-
- definitions/procedures/foreman_tasks/ui_investigate.rb
|
259
|
-
- definitions/procedures/sync_plans/disable.rb
|
260
|
-
- definitions/procedures/sync_plans/enable.rb
|
261
190
|
- definitions/procedures/backup/accessibility_confirmation.rb
|
262
191
|
- definitions/procedures/backup/clean.rb
|
192
|
+
- definitions/procedures/backup/compress_data.rb
|
193
|
+
- definitions/procedures/backup/config_files.rb
|
194
|
+
- definitions/procedures/backup/metadata.rb
|
263
195
|
- definitions/procedures/backup/offline/candlepin_db.rb
|
264
196
|
- definitions/procedures/backup/offline/foreman_db.rb
|
265
197
|
- definitions/procedures/backup/offline/mongo.rb
|
198
|
+
- definitions/procedures/backup/offline/pulpcore_db.rb
|
266
199
|
- definitions/procedures/backup/online/candlepin_db.rb
|
267
200
|
- definitions/procedures/backup/online/foreman_db.rb
|
268
201
|
- definitions/procedures/backup/online/mongo.rb
|
269
202
|
- definitions/procedures/backup/online/pg_global_objects.rb
|
203
|
+
- definitions/procedures/backup/online/pulpcore_db.rb
|
270
204
|
- definitions/procedures/backup/online/safety_confirmation.rb
|
271
205
|
- definitions/procedures/backup/prepare_directory.rb
|
206
|
+
- definitions/procedures/backup/pulp.rb
|
272
207
|
- definitions/procedures/backup/snapshot/clean_mount.rb
|
208
|
+
- definitions/procedures/backup/snapshot/logical_volume_confirmation.rb
|
273
209
|
- definitions/procedures/backup/snapshot/mount_base.rb
|
274
210
|
- definitions/procedures/backup/snapshot/mount_candlepin_db.rb
|
275
211
|
- definitions/procedures/backup/snapshot/mount_foreman_db.rb
|
276
212
|
- definitions/procedures/backup/snapshot/mount_mongo.rb
|
277
|
-
- definitions/procedures/backup/snapshot/prepare_mount.rb
|
278
|
-
- definitions/procedures/backup/snapshot/logical_volume_confirmation.rb
|
279
213
|
- definitions/procedures/backup/snapshot/mount_pulp.rb
|
280
|
-
- definitions/procedures/backup/
|
281
|
-
- definitions/procedures/backup/
|
282
|
-
- definitions/procedures/backup/config_files.rb
|
283
|
-
- definitions/procedures/backup/pulp.rb
|
214
|
+
- definitions/procedures/backup/snapshot/mount_pulpcore_db.rb
|
215
|
+
- definitions/procedures/backup/snapshot/prepare_mount.rb
|
284
216
|
- definitions/procedures/candlepin/delete_orphaned_records_from_env_content.rb
|
217
|
+
- definitions/procedures/content/prepare.rb
|
218
|
+
- definitions/procedures/content/switchover.rb
|
285
219
|
- definitions/procedures/crond/start.rb
|
286
220
|
- definitions/procedures/crond/stop.rb
|
221
|
+
- definitions/procedures/files/remove.rb
|
287
222
|
- definitions/procedures/foreman/apipie_cache.rb
|
288
|
-
- definitions/procedures/foreman/remove_duplicate_obsolete_roles.rb
|
289
223
|
- definitions/procedures/foreman/fix_corrupted_roles.rb
|
224
|
+
- definitions/procedures/foreman/remove_duplicate_obsolete_roles.rb
|
290
225
|
- definitions/procedures/foreman_docker/remove_foreman_docker.rb
|
291
226
|
- definitions/procedures/foreman_openscap/invalid_report_associations.rb
|
227
|
+
- definitions/procedures/foreman_proxy/features.rb
|
228
|
+
- definitions/procedures/foreman_tasks/delete.rb
|
229
|
+
- definitions/procedures/foreman_tasks/fetch_tasks_status.rb
|
230
|
+
- definitions/procedures/foreman_tasks/resume.rb
|
231
|
+
- definitions/procedures/foreman_tasks/ui_investigate.rb
|
292
232
|
- definitions/procedures/hammer_setup.rb
|
293
|
-
- definitions/procedures/installer/upgrade.rb
|
294
233
|
- definitions/procedures/installer/run.rb
|
234
|
+
- definitions/procedures/installer/upgrade.rb
|
295
235
|
- definitions/procedures/iptables/add_maintenance_mode_chain.rb
|
296
236
|
- definitions/procedures/iptables/remove_maintenance_mode_chain.rb
|
237
|
+
- definitions/procedures/knowledge_base_article.rb
|
297
238
|
- definitions/procedures/maintenance_mode/is_enabled.rb
|
239
|
+
- definitions/procedures/packages/enable_version_locking.rb
|
298
240
|
- definitions/procedures/packages/install.rb
|
299
241
|
- definitions/procedures/packages/installer_confirmation.rb
|
300
|
-
- definitions/procedures/packages/enable_version_locking.rb
|
301
242
|
- definitions/procedures/packages/lock_versions.rb
|
302
243
|
- definitions/procedures/packages/locking_status.rb
|
303
244
|
- definitions/procedures/packages/unlock_versions.rb
|
304
245
|
- definitions/procedures/packages/update.rb
|
246
|
+
- definitions/procedures/packages/update_all_confirmation.rb
|
305
247
|
- definitions/procedures/passenger_recycler.rb
|
306
248
|
- definitions/procedures/pulp/migrate.rb
|
249
|
+
- definitions/procedures/pulpcore/migrate.rb
|
307
250
|
- definitions/procedures/puppet/delete_empty_ca_cert_request_files.rb
|
308
251
|
- definitions/procedures/remote_execution/remove_existing_settingsd.rb
|
309
252
|
- definitions/procedures/repositories/disable.rb
|
310
253
|
- definitions/procedures/repositories/setup.rb
|
311
254
|
- definitions/procedures/restore/candlepin_dump.rb
|
255
|
+
- definitions/procedures/restore/configs.rb
|
312
256
|
- definitions/procedures/restore/confirmation.rb
|
313
257
|
- definitions/procedures/restore/drop_databases.rb
|
314
258
|
- definitions/procedures/restore/ensure_mongo_engine_matches.rb
|
315
259
|
- definitions/procedures/restore/extract_files.rb
|
316
260
|
- definitions/procedures/restore/foreman_dump.rb
|
317
|
-
- definitions/procedures/restore/pg_global_objects.rb
|
318
|
-
- definitions/procedures/restore/postgres_owner.rb
|
319
261
|
- definitions/procedures/restore/installer_reset.rb
|
320
|
-
- definitions/procedures/restore/configs.rb
|
321
262
|
- definitions/procedures/restore/mongo_dump.rb
|
263
|
+
- definitions/procedures/restore/pg_global_objects.rb
|
264
|
+
- definitions/procedures/restore/postgres_owner.rb
|
265
|
+
- definitions/procedures/restore/pulpcore_dump.rb
|
322
266
|
- definitions/procedures/selinux/set_file_security.rb
|
267
|
+
- definitions/procedures/service/base.rb
|
323
268
|
- definitions/procedures/service/daemon_reload.rb
|
324
269
|
- definitions/procedures/service/disable.rb
|
325
270
|
- definitions/procedures/service/enable.rb
|
326
271
|
- definitions/procedures/service/list.rb
|
272
|
+
- definitions/procedures/service/restart.rb
|
327
273
|
- definitions/procedures/service/start.rb
|
328
274
|
- definitions/procedures/service/status.rb
|
329
275
|
- definitions/procedures/service/stop.rb
|
330
|
-
- definitions/procedures/
|
331
|
-
- definitions/procedures/
|
332
|
-
- definitions/
|
333
|
-
- definitions/procedures/files/remove.rb
|
334
|
-
- definitions/procedures/knowledge_base_article.rb
|
335
|
-
- definitions/procedures/content/prepare.rb
|
276
|
+
- definitions/procedures/sync_plans/disable.rb
|
277
|
+
- definitions/procedures/sync_plans/enable.rb
|
278
|
+
- definitions/scenarios/backup.rb
|
336
279
|
- definitions/scenarios/maintenance_mode.rb
|
337
|
-
- definitions/scenarios/upgrade_to_satellite_6_6.rb
|
338
280
|
- definitions/scenarios/packages.rb
|
339
281
|
- definitions/scenarios/restore.rb
|
282
|
+
- definitions/scenarios/services.rb
|
340
283
|
- definitions/scenarios/upgrade_to_satellite_6_2.rb
|
341
|
-
- definitions/scenarios/upgrade_to_satellite_6_4.rb
|
342
|
-
- definitions/scenarios/upgrade_to_satellite_6_6_z.rb
|
343
|
-
- definitions/scenarios/backup.rb
|
344
284
|
- definitions/scenarios/upgrade_to_satellite_6_2_z.rb
|
285
|
+
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
345
286
|
- definitions/scenarios/upgrade_to_satellite_6_3_z.rb
|
287
|
+
- definitions/scenarios/upgrade_to_satellite_6_4.rb
|
346
288
|
- definitions/scenarios/upgrade_to_satellite_6_4_z.rb
|
289
|
+
- definitions/scenarios/upgrade_to_satellite_6_5.rb
|
347
290
|
- definitions/scenarios/upgrade_to_satellite_6_5_z.rb
|
291
|
+
- definitions/scenarios/upgrade_to_satellite_6_6.rb
|
292
|
+
- definitions/scenarios/upgrade_to_satellite_6_6_z.rb
|
348
293
|
- definitions/scenarios/upgrade_to_satellite_6_7.rb
|
349
|
-
- definitions/scenarios/services.rb
|
350
|
-
- definitions/scenarios/upgrade_to_satellite_6_3.rb
|
351
|
-
- definitions/scenarios/upgrade_to_satellite_6_5.rb
|
352
294
|
- definitions/scenarios/upgrade_to_satellite_6_7_z.rb
|
353
|
-
- config/foreman-maintain.completion
|
354
|
-
- config/foreman_maintain.yml.example
|
355
|
-
- config/foreman_maintain.yml.packaging
|
356
|
-
- config/hammer.yml.example
|
357
|
-
- config/passenger-recycler.yaml
|
358
295
|
- extras/foreman-maintain.sh
|
359
296
|
- extras/foreman_protector/foreman-protector.conf
|
360
297
|
- extras/foreman_protector/foreman-protector.py
|
361
298
|
- extras/foreman_protector/foreman-protector.whitelist
|
362
299
|
- extras/passenger-recycler.cron
|
363
|
-
-
|
364
|
-
-
|
300
|
+
- lib/foreman_maintain.rb
|
301
|
+
- lib/foreman_maintain/check.rb
|
302
|
+
- lib/foreman_maintain/cli.rb
|
303
|
+
- lib/foreman_maintain/cli/advanced/prebuild_bash_completion.rb
|
304
|
+
- lib/foreman_maintain/cli/advanced/procedure/abstract_by_tag_command.rb
|
305
|
+
- lib/foreman_maintain/cli/advanced/procedure/abstract_procedure_command.rb
|
306
|
+
- lib/foreman_maintain/cli/advanced/procedure/by_tag_command.rb
|
307
|
+
- lib/foreman_maintain/cli/advanced/procedure/run_command.rb
|
308
|
+
- lib/foreman_maintain/cli/advanced/procedure_command.rb
|
309
|
+
- lib/foreman_maintain/cli/advanced_command.rb
|
310
|
+
- lib/foreman_maintain/cli/backup_command.rb
|
311
|
+
- lib/foreman_maintain/cli/base.rb
|
312
|
+
- lib/foreman_maintain/cli/health_command.rb
|
313
|
+
- lib/foreman_maintain/cli/maintenance_mode_command.rb
|
314
|
+
- lib/foreman_maintain/cli/packages_command.rb
|
315
|
+
- lib/foreman_maintain/cli/restore_command.rb
|
316
|
+
- lib/foreman_maintain/cli/service_command.rb
|
317
|
+
- lib/foreman_maintain/cli/transform_clamp_options.rb
|
318
|
+
- lib/foreman_maintain/cli/upgrade_command.rb
|
319
|
+
- lib/foreman_maintain/concerns/base_database.rb
|
320
|
+
- lib/foreman_maintain/concerns/directory_marker.rb
|
321
|
+
- lib/foreman_maintain/concerns/downstream.rb
|
322
|
+
- lib/foreman_maintain/concerns/finders.rb
|
323
|
+
- lib/foreman_maintain/concerns/hammer.rb
|
324
|
+
- lib/foreman_maintain/concerns/logger.rb
|
325
|
+
- lib/foreman_maintain/concerns/metadata.rb
|
326
|
+
- lib/foreman_maintain/concerns/reporter.rb
|
327
|
+
- lib/foreman_maintain/concerns/scenario_metadata.rb
|
328
|
+
- lib/foreman_maintain/concerns/system_helpers.rb
|
329
|
+
- lib/foreman_maintain/concerns/system_service.rb
|
330
|
+
- lib/foreman_maintain/config.rb
|
331
|
+
- lib/foreman_maintain/context.rb
|
332
|
+
- lib/foreman_maintain/core_ext.rb
|
333
|
+
- lib/foreman_maintain/csv_parser.rb
|
334
|
+
- lib/foreman_maintain/dependency_graph.rb
|
335
|
+
- lib/foreman_maintain/detector.rb
|
336
|
+
- lib/foreman_maintain/error.rb
|
337
|
+
- lib/foreman_maintain/executable.rb
|
338
|
+
- lib/foreman_maintain/feature.rb
|
339
|
+
- lib/foreman_maintain/package_manager.rb
|
340
|
+
- lib/foreman_maintain/package_manager/base.rb
|
341
|
+
- lib/foreman_maintain/package_manager/dnf.rb
|
342
|
+
- lib/foreman_maintain/package_manager/yum.rb
|
343
|
+
- lib/foreman_maintain/param.rb
|
344
|
+
- lib/foreman_maintain/procedure.rb
|
345
|
+
- lib/foreman_maintain/reporter.rb
|
346
|
+
- lib/foreman_maintain/reporter/cli_reporter.rb
|
347
|
+
- lib/foreman_maintain/runner.rb
|
348
|
+
- lib/foreman_maintain/runner/execution.rb
|
349
|
+
- lib/foreman_maintain/runner/stored_execution.rb
|
350
|
+
- lib/foreman_maintain/scenario.rb
|
351
|
+
- lib/foreman_maintain/top_level_modules.rb
|
352
|
+
- lib/foreman_maintain/upgrade_runner.rb
|
353
|
+
- lib/foreman_maintain/utils.rb
|
354
|
+
- lib/foreman_maintain/utils/backup.rb
|
355
|
+
- lib/foreman_maintain/utils/bash.rb
|
356
|
+
- lib/foreman_maintain/utils/command_runner.rb
|
357
|
+
- lib/foreman_maintain/utils/curl_response.rb
|
358
|
+
- lib/foreman_maintain/utils/disk.rb
|
359
|
+
- lib/foreman_maintain/utils/disk/device.rb
|
360
|
+
- lib/foreman_maintain/utils/disk/io_device.rb
|
361
|
+
- lib/foreman_maintain/utils/disk/nil_device.rb
|
362
|
+
- lib/foreman_maintain/utils/disk/stats.rb
|
363
|
+
- lib/foreman_maintain/utils/facter.rb
|
364
|
+
- lib/foreman_maintain/utils/hash_tools.rb
|
365
|
+
- lib/foreman_maintain/utils/mongo_core.rb
|
366
|
+
- lib/foreman_maintain/utils/response.rb
|
367
|
+
- lib/foreman_maintain/utils/service.rb
|
368
|
+
- lib/foreman_maintain/utils/service/abstract.rb
|
369
|
+
- lib/foreman_maintain/utils/service/remote_db.rb
|
370
|
+
- lib/foreman_maintain/utils/service/systemd.rb
|
371
|
+
- lib/foreman_maintain/utils/system_helpers.rb
|
372
|
+
- lib/foreman_maintain/version.rb
|
373
|
+
- lib/foreman_maintain/yaml_storage.rb
|
365
374
|
homepage: https://github.com/theforeman/foreman_maintain
|
366
375
|
licenses:
|
367
376
|
- GPL-3.0
|
@@ -372,17 +381,16 @@ require_paths:
|
|
372
381
|
- lib
|
373
382
|
required_ruby_version: !ruby/object:Gem::Requirement
|
374
383
|
requirements:
|
375
|
-
- -
|
384
|
+
- - ">="
|
376
385
|
- !ruby/object:Gem::Version
|
377
386
|
version: '0'
|
378
387
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
379
388
|
requirements:
|
380
|
-
- -
|
389
|
+
- - ">="
|
381
390
|
- !ruby/object:Gem::Version
|
382
391
|
version: '0'
|
383
392
|
requirements: []
|
384
|
-
|
385
|
-
rubygems_version: 2.0.14.1
|
393
|
+
rubygems_version: 3.0.6
|
386
394
|
signing_key:
|
387
395
|
specification_version: 4
|
388
396
|
summary: Foreman maintenance tool belt
|