smart_proxy_openscap 0.5.1 → 0.5.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3045f38873e1f2bcde54bde9421175602bb9f34
|
4
|
+
data.tar.gz: 24414ceac6a0c7d5a3462d2de1ab11e6a45f5806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1cceeb3e1ed7a8e469fafef6f703a89db4352d22d6f765dd6455fea2ed097addd0bee56c08495b210b78039d2960e715e0c08d547c95c3cf6584dca7072db90
|
7
|
+
data.tar.gz: 498837268ecc6d1c12bdf4906fda81ade22b1846358acc84a5813dd7e3242d5086805cda2b637b417cee04d47fcc48fbcbb6344499dcfca31dd954d102fa1a38
|
@@ -38,7 +38,7 @@ end
|
|
38
38
|
begin
|
39
39
|
Proxy::OpenSCAP::send_spool_to_foreman
|
40
40
|
rescue StandardError => e
|
41
|
-
logger.
|
42
|
-
|
41
|
+
logger.error "#{e}
|
42
|
+
puts "#{e} See #{Proxy::OpenSCAP.fullpath(Proxy::OpenSCAP::Plugin.settings.openscap_send_log_file)}"
|
43
43
|
exit false
|
44
44
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# Send all collected OpenSCAP reports once every 30 minutes
|
2
|
-
*/30 * * * * foreman-proxy smart-proxy-openscap-send
|
2
|
+
*/30 * * * * foreman-proxy smart-proxy-openscap-send >> /var/log/foreman-proxy/cron.log
|
@@ -3,11 +3,19 @@ module Proxy::OpenSCAP
|
|
3
3
|
include ::Proxy::Log
|
4
4
|
|
5
5
|
def post_arf_from_spool(arf_dir)
|
6
|
+
failed = nil
|
6
7
|
Dir.foreach(arf_dir) do |cname|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
begin
|
9
|
+
next if cname == '.' || cname == '..'
|
10
|
+
cname_dir = File.join(arf_dir, cname)
|
11
|
+
forward_cname_dir(cname, cname_dir) if File.directory?(cname_dir)
|
12
|
+
rescue StandardError => e
|
13
|
+
logger.debug e.backtrace.join("\n\t")
|
14
|
+
logger.error "Failed to send SCAP results for #{cname} to the Foreman server: #{e}"
|
15
|
+
failed = true
|
16
|
+
end
|
10
17
|
end
|
18
|
+
raise "Failed to send SCAP results for one or more hosts." if failed
|
11
19
|
end
|
12
20
|
|
13
21
|
private
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Šimon Lukašík
|
8
8
|
- Shlomi Zadok
|
9
9
|
- Marek Hulan
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|