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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d754a81f9efab9d0c7d52788bf5523923027055fc2372a5f91095326dcf3c80b
|
4
|
+
data.tar.gz: b83d60aedd820a6ba565bc82c0490fec3fd6c6fcfd3f2af215dc8254a3673bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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.
|
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
|