Skip to content

Commit

Permalink
Merge pull request #40 from redBorder/feature/#16519_enable_ale_if_se…
Browse files Browse the repository at this point in the history
…nsors

Feature/#16519 enable ale if sensors
  • Loading branch information
dcastro-redBorder authored Sep 2, 2024
2 parents c1cdf71 + b329547 commit 2d14d08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
default['redborder']['services']['pmacct'] = true
default['redborder']['services']['rsyslog'] = true
default['redborder']['services']['redborder-nmsp'] = true
default['redborder']['services']['redborder-ale'] = true
default['redborder']['services']['redborder-ale'] = false
default['redborder']['services']['n2klocd'] = true
default['redborder']['services']['radiusd'] = false
default['redborder']['services']['k2http'] = true
Expand Down
5 changes: 3 additions & 2 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@

# TODO: replace node['redborder']['services'] in action with 'proxy_services'..
rbale_config 'Configure redborder-ale' do
ale_nodes node.run_state['sensors_info_all']['ale-sensor']
if node['redborder']['services']['redborder-ale']
ale_sensors = node.run_state['sensors_info_all']['ale-sensor']
if !ale_sensors.empty?
ale_nodes ale_sensors
action [:add]
else
action [:remove]
Expand Down

0 comments on commit 2d14d08

Please sign in to comment.