foreman_maintain 1.7.0 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/definitions/checks/pulpcore/no_running_tasks.rb +3 -0
- data/definitions/features/pulpcore.rb +11 -1
- data/definitions/procedures/crond/start.rb +1 -1
- data/definitions/procedures/crond/stop.rb +1 -1
- data/definitions/procedures/maintenance_mode/disable_maintenance_mode.rb +1 -1
- data/definitions/procedures/maintenance_mode/enable_maintenance_mode.rb +1 -1
- data/definitions/scenarios/maintenance_mode.rb +6 -2
- data/lib/foreman_maintain/upgrade_runner.rb +1 -1
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84b855d08a7d01c7df1b6e6df2f757418986c9eb33a1dda287d894099d0cd4a4
|
4
|
+
data.tar.gz: 5862df244ff4a6dfa7edf3dd348eb942c43854ab9ff11d20399af2dec99a4775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0422c2363fdb4fdd3b692205ce0db20f2b603c7a65efe3d7f30c8d1654036c5e6a344a0d8d4bdc1bc400b42eaf7e4eeca9ab0c799ceee5ad3cd1b60febe93c87
|
7
|
+
data.tar.gz: d983619c591e737257078a6b8f2cb15cc15bb3bc9227c6a8ae413b5742eeecc2d7f1e57544659ee4e3c23cf83eb553e83d1a5af3fd552115da3ee9864c714dd9
|
@@ -5,9 +5,19 @@ class Features::Pulpcore < ForemanMaintain::Feature
|
|
5
5
|
|
6
6
|
TIMEOUT_FOR_TASKS_STATUS = 300
|
7
7
|
RETRY_INTERVAL_FOR_TASKS_STATE = 10
|
8
|
+
PULP_SETTINGS = '/etc/pulp/settings.py'.freeze
|
9
|
+
PULP_CLI_SETTINGS = '/etc/pulp/cli.toml'.freeze
|
8
10
|
|
9
11
|
metadata do
|
10
12
|
label :pulpcore
|
13
|
+
|
14
|
+
confine do
|
15
|
+
File.exist?(PULP_SETTINGS)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def cli_available?
|
20
|
+
File.exist?(PULP_CLI_SETTINGS)
|
11
21
|
end
|
12
22
|
|
13
23
|
def cli(args)
|
@@ -49,7 +59,7 @@ class Features::Pulpcore < ForemanMaintain::Feature
|
|
49
59
|
|
50
60
|
def config_files
|
51
61
|
[
|
52
|
-
|
62
|
+
PULP_SETTINGS,
|
53
63
|
'/etc/pulp/certs/database_fields.symmetric.key',
|
54
64
|
]
|
55
65
|
end
|
@@ -8,7 +8,9 @@ module ForemanMaintain::Scenarios
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def compose
|
11
|
-
|
11
|
+
add_step(Procedures::MaintenanceMode::EnableMaintenanceMode)
|
12
|
+
add_step(Procedures::Crond::Stop)
|
13
|
+
add_step(Procedures::SyncPlans::Disable)
|
12
14
|
end
|
13
15
|
end
|
14
16
|
|
@@ -21,7 +23,9 @@ module ForemanMaintain::Scenarios
|
|
21
23
|
end
|
22
24
|
|
23
25
|
def compose
|
24
|
-
|
26
|
+
add_step(Procedures::SyncPlans::Enable)
|
27
|
+
add_step(Procedures::Crond::Start)
|
28
|
+
add_step(Procedures::MaintenanceMode::DisableMaintenanceMode)
|
25
29
|
end
|
26
30
|
end
|
27
31
|
|
@@ -44,7 +44,7 @@ module ForemanMaintain
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def available?
|
47
|
-
condition = { :tags => [:upgrade_scenario, :
|
47
|
+
condition = { :tags => [:upgrade_scenario, :pre_upgrade_checks] }
|
48
48
|
matching_scenarios = find_scenarios(condition)
|
49
49
|
!matching_scenarios.empty?
|
50
50
|
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: 1.7.
|
4
|
+
version: 1.7.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: 2024-08-
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|