foreman_maintain 0.8.29 → 0.8.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ab72c4918a40ef7bfa20d26aaec96b2bd5fb1361aa6bf1fcd7e690e5d77f7c1
4
- data.tar.gz: 1ffafe8717734bf82ac1a99862b95da731c31a756974c5cf0ba9da54aa5c1d71
3
+ metadata.gz: d754a81f9efab9d0c7d52788bf5523923027055fc2372a5f91095326dcf3c80b
4
+ data.tar.gz: b83d60aedd820a6ba565bc82c0490fec3fd6c6fcfd3f2af215dc8254a3673bf2
5
5
  SHA512:
6
- metadata.gz: 0b9707e8c9a64d2c0bb41072dcc5f7ba9abea59cbd105db9a24fd30e1198431d3d0b6d9593b3c773ec58fa235c8758eb48fded45c4bf627359cc15495a976866
7
- data.tar.gz: '0928589a6fd6a13c23c98c7e21c3e057becf650e11fe473df94480bd7fdcec92cf0724e56288d6e4afa022bdbccc0a971448648afd500b52f56e6da46df3e808'
6
+ metadata.gz: 2913b00fafee3daa898c25ba5abe993aa19273e2caaa6fcdb7b868bcf6b3abd0521515a0dfe29e9ea774df1e106b91995e1b4c0f5e6ee02d66a853e6b6f598fa
7
+ data.tar.gz: c8782dee263bd2cee34e99c4ee103fea41a0976f8395a6362b29e8b129be9982a38967a716b196df67d11d2b22044a49b0bfff0d439ceaf036c7ee2d1b220656
@@ -0,0 +1,14 @@
1
+ module Procedures::Restore
2
+ class CandlepinResetMigrations < ForemanMaintain::Procedure
3
+ metadata do
4
+ description 'Ensure Candlepin runs all migrations after restoring the database'
5
+ confine do
6
+ feature(:candlepin_database)
7
+ end
8
+ end
9
+
10
+ def run
11
+ FileUtils.rm_f('/var/lib/candlepin/.puppet-candlepin-rpm-version')
12
+ end
13
+ end
14
+ end
@@ -37,7 +37,8 @@ module ForemanMaintain::Scenarios
37
37
  end
38
38
  restore_mongo_dump(backup)
39
39
  add_steps_with_context(Procedures::Pulp::Migrate,
40
- Procedures::Pulpcore::Migrate)
40
+ Procedures::Pulpcore::Migrate,
41
+ Procedures::Restore::CandlepinResetMigrations)
41
42
 
42
43
  add_steps_with_context(Procedures::Restore::RegenerateQueues) if backup.online_backup?
43
44
  add_steps_with_context(Procedures::Service::Start,
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.8.29'.freeze
2
+ VERSION = '0.8.30'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.29
4
+ version: 0.8.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
@@ -279,6 +279,7 @@ files:
279
279
  - definitions/procedures/repositories/enable.rb
280
280
  - definitions/procedures/repositories/setup.rb
281
281
  - definitions/procedures/restore/candlepin_dump.rb
282
+ - definitions/procedures/restore/candlepin_reset_migrations.rb
282
283
  - definitions/procedures/restore/configs.rb
283
284
  - definitions/procedures/restore/confirmation.rb
284
285
  - definitions/procedures/restore/drop_databases.rb