foreman_maintain 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/bin/foreman-maintain +2 -1
  3. data/definitions/checks/backup/directory_ready.rb +1 -1
  4. data/definitions/checks/restore/validate_backup.rb +77 -0
  5. data/definitions/checks/restore/validate_hostname.rb +20 -0
  6. data/definitions/features/foreman_proxy.rb +6 -1
  7. data/definitions/features/foreman_tasks.rb +5 -1
  8. data/definitions/features/instance.rb +8 -0
  9. data/definitions/features/katello.rb +0 -1
  10. data/definitions/features/mongo.rb +51 -12
  11. data/definitions/features/pulp.rb +2 -1
  12. data/definitions/features/service.rb +36 -0
  13. data/definitions/features/tar.rb +16 -4
  14. data/definitions/procedures/backup/online/pg_global_objects.rb +3 -1
  15. data/definitions/procedures/backup/prepare_directory.rb +1 -1
  16. data/definitions/procedures/backup/pulp.rb +2 -1
  17. data/definitions/procedures/pulp/migrate.rb +21 -0
  18. data/definitions/procedures/restore/candlepin_dump.rb +30 -0
  19. data/definitions/procedures/restore/configs.rb +40 -0
  20. data/definitions/procedures/restore/confirmation.rb +17 -0
  21. data/definitions/procedures/restore/drop_databases.rb +39 -0
  22. data/definitions/procedures/restore/extract_files.rb +70 -0
  23. data/definitions/procedures/restore/foreman_dump.rb +30 -0
  24. data/definitions/procedures/restore/installer_reset.rb +39 -0
  25. data/definitions/procedures/restore/mongo_dump.rb +41 -0
  26. data/definitions/procedures/restore/pg_global_objects.rb +36 -0
  27. data/definitions/procedures/restore/postgres_owner.rb +18 -0
  28. data/definitions/procedures/selinux/set_file_security.rb +22 -0
  29. data/definitions/procedures/service/daemon_reload.rb +18 -0
  30. data/definitions/procedures/service/restart.rb +2 -2
  31. data/definitions/scenarios/restore.rb +91 -0
  32. data/lib/foreman_maintain/cli.rb +3 -1
  33. data/lib/foreman_maintain/cli/restore_command.rb +26 -0
  34. data/lib/foreman_maintain/concerns/base_database.rb +35 -1
  35. data/lib/foreman_maintain/concerns/system_helpers.rb +1 -5
  36. data/lib/foreman_maintain/reporter/cli_reporter.rb +2 -1
  37. data/lib/foreman_maintain/utils/backup.rb +225 -0
  38. data/lib/foreman_maintain/utils/command_runner.rb +4 -2
  39. data/lib/foreman_maintain/utils/mongo_core.rb +49 -0
  40. data/lib/foreman_maintain/version.rb +1 -1
  41. metadata +20 -2
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  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.2.1
4
+ version: 0.2.2
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: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -131,6 +131,8 @@ files:
131
131
  - definitions/checks/mongo/tools_installed.rb
132
132
  - definitions/checks/remote_execution/verify_settings_file_already_exists.rb
133
133
  - definitions/checks/repositories/validate.rb
134
+ - definitions/checks/restore/validate_backup.rb
135
+ - definitions/checks/restore/validate_hostname.rb
134
136
  - definitions/checks/root_user.rb
135
137
  - definitions/checks/system_registration.rb
136
138
  - definitions/features/candlepin.rb
@@ -190,9 +192,22 @@ files:
190
192
  - definitions/procedures/packages/install.rb
191
193
  - definitions/procedures/packages/update.rb
192
194
  - definitions/procedures/passenger_recycler.rb
195
+ - definitions/procedures/pulp/migrate.rb
193
196
  - definitions/procedures/remote_execution/remove_existing_settingsd.rb
194
197
  - definitions/procedures/repositories/setup.rb
198
+ - definitions/procedures/restore/candlepin_dump.rb
199
+ - definitions/procedures/restore/configs.rb
200
+ - definitions/procedures/restore/confirmation.rb
201
+ - definitions/procedures/restore/drop_databases.rb
202
+ - definitions/procedures/restore/extract_files.rb
203
+ - definitions/procedures/restore/foreman_dump.rb
204
+ - definitions/procedures/restore/installer_reset.rb
205
+ - definitions/procedures/restore/mongo_dump.rb
206
+ - definitions/procedures/restore/pg_global_objects.rb
207
+ - definitions/procedures/restore/postgres_owner.rb
208
+ - definitions/procedures/selinux/set_file_security.rb
195
209
  - definitions/procedures/service/base.rb
210
+ - definitions/procedures/service/daemon_reload.rb
196
211
  - definitions/procedures/service/disable.rb
197
212
  - definitions/procedures/service/enable.rb
198
213
  - definitions/procedures/service/list.rb
@@ -203,6 +218,7 @@ files:
203
218
  - definitions/procedures/sync_plans/disable.rb
204
219
  - definitions/procedures/sync_plans/enable.rb
205
220
  - definitions/scenarios/backup.rb
221
+ - definitions/scenarios/restore.rb
206
222
  - definitions/scenarios/services.rb
207
223
  - definitions/scenarios/upgrade_to_satellite_6_2.rb
208
224
  - definitions/scenarios/upgrade_to_satellite_6_2_z.rb
@@ -222,6 +238,7 @@ files:
222
238
  - lib/foreman_maintain/cli/backup_command.rb
223
239
  - lib/foreman_maintain/cli/base.rb
224
240
  - lib/foreman_maintain/cli/health_command.rb
241
+ - lib/foreman_maintain/cli/restore_command.rb
225
242
  - lib/foreman_maintain/cli/service_command.rb
226
243
  - lib/foreman_maintain/cli/transform_clamp_options.rb
227
244
  - lib/foreman_maintain/cli/upgrade_command.rb
@@ -253,6 +270,7 @@ files:
253
270
  - lib/foreman_maintain/top_level_modules.rb
254
271
  - lib/foreman_maintain/upgrade_runner.rb
255
272
  - lib/foreman_maintain/utils.rb
273
+ - lib/foreman_maintain/utils/backup.rb
256
274
  - lib/foreman_maintain/utils/command_runner.rb
257
275
  - lib/foreman_maintain/utils/curl_response.rb
258
276
  - lib/foreman_maintain/utils/disk.rb