-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into Feature/#17820_add_intrusion_pipeline
- Loading branch information
Showing
7 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module RbManager | ||
module Helpers | ||
def get_monitor_configuration | ||
monitor_config = [] | ||
sensor = search(:node, 'redborder_monitors:[* TO *] AND name:*device*').sort | ||
sensor.each do |node| | ||
monitors = node.normal['redborder']['monitors'] | ||
monitors.each do |monitor| | ||
if monitor['name'] == 'bulkstats_schema' || monitor['name'] == 'thermal' | ||
monitor_config << monitor['name'] | ||
end | ||
end | ||
end | ||
monitor_config | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module RbManager | ||
module Helpers | ||
def find_monitor_sensor_in_proxy_nodes | ||
sensors_info = [] | ||
sensor_types = ['proxy-sensor'] | ||
sensor_types.each do |s_type| | ||
begin | ||
sensors = search(:node, "role:#{s_type}") | ||
.map { |s| s.override['redborder']['sensors_mapping']['device'] } | ||
.reject { |device| device.nil? || device.empty? } | ||
|
||
sensors_info.concat(sensors) unless sensors.empty? | ||
rescue NoMethodError | ||
sensors_info = [] | ||
end | ||
end | ||
sensors_info | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
maintainer_email '[email protected]' | ||
license 'AGPL-3.0' | ||
description 'Installs/Configures redborder manager' | ||
version '2.1.0' | ||
version '2.2.0' | ||
|
||
depends 'rb-common' | ||
depends 'chef-server' | ||
|
@@ -42,4 +42,5 @@ | |
depends 'rblogstatter' | ||
depends 'rb-arubacentral' | ||
depends 'rb-postfix' | ||
depends 'rb-clamav' | ||
depends 'keepalived' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters