foreman_maintain 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c68595e8b757aec62c30d2aca14100da46392a4a892d25ed080f6ad57f4a237d
|
4
|
+
data.tar.gz: 5ad55189dadfd2791e6c40b0ed4248749dab26b45356508191d2b4517497875f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c03cd903549a848cc1b8418eefc643a045df59e6db12b2890347280ec9854f2c6761e54cd9c2410adc81db93c563eb29a034211b5deab8b30f5f88d7386048
|
7
|
+
data.tar.gz: cc197601d09d86ecd99a56ab13add58ad211e49908b619c4224ecf9c7d4b57903b73ff36928b99110b9876ba72cb468c1c15bf184661de2f772ea1a33a69021d
|
data/definitions/features/iop.rb
CHANGED
@@ -39,7 +39,6 @@ class Features::Iop < ForemanMaintain::Feature
|
|
39
39
|
system_service('iop-service-vuln-listener', 20),
|
40
40
|
system_service('iop-service-vuln-manager', 20),
|
41
41
|
system_service('iop-service-vuln-taskomatic', 20),
|
42
|
-
system_service('iop-service-vuln-vmaas-sync', 20),
|
43
42
|
]
|
44
43
|
end
|
45
44
|
# rubocop:enable Metrics/MethodLength
|
@@ -24,7 +24,7 @@ class Features::IopAdvisorDatabase < ForemanMaintain::Feature
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def load_configuration
|
27
|
-
podman_command = "podman exec iop-service-advisor-api bash -c 'env |grep DB_'"
|
27
|
+
podman_command = "podman exec iop-service-advisor-backend-api bash -c 'env |grep DB_'"
|
28
28
|
podman_result = execute!(podman_command, merge_stderr: false).lines.map do |l|
|
29
29
|
l.strip.split('=')
|
30
30
|
end.to_h
|
@@ -20,8 +20,9 @@ module ForemanMaintain
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
option '--output', 'FILE', 'Output the generate report into FILE'
|
24
23
|
subcommand 'generate', 'Generates the usage reports' do
|
24
|
+
option '--output', 'FILE', 'Output the generate report into FILE'
|
25
|
+
|
25
26
|
def execute
|
26
27
|
report_data = generate_report
|
27
28
|
yaml = report_data.to_yaml
|
@@ -31,11 +32,12 @@ module ForemanMaintain
|
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
|
-
option '--input', 'FILE', 'Input the report from FILE'
|
35
|
-
option '--output', 'FILE', 'Output the condense report into FILE'
|
36
|
-
option '--max-age', 'HOURS', 'Max age of the report in hours'
|
37
35
|
subcommand 'condense',
|
38
36
|
'Generate a JSON formatted report with condensed data from the original report.' do
|
37
|
+
option '--input', 'FILE', 'Input the report from FILE'
|
38
|
+
option '--output', 'FILE', 'Output the condense report into FILE'
|
39
|
+
option '--max-age', 'HOURS', 'Max age of the report in hours'
|
40
|
+
|
39
41
|
def execute
|
40
42
|
data = if fresh_enough?(@input, @max_age)
|
41
43
|
YAML.load_file(@input)
|