Skip to content

Commit

Permalink
Prevent logstash to be enabled when no pipelines are in the node
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed May 8, 2024
1 parent a21fb04 commit fc870c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
node.default["redborder"]["druid"]["realtime"]["partition_num"] = node["redborder"]["managers_per_services"]["druid-realtime"].index(node.name)
end

if node["redborder"]["logstash"]["pipelines"].empty? and node["redborder"]["services"]["overwrite"].nil?
node.default["redborder"]["services"]["logstash"] = false
else
node.default["redborder"]["services"]["logstash"] = true
end

#get an array of managers
managers_list = []
node["redborder"]["cluster_info"].each_key do |mgr|
Expand Down

0 comments on commit fc870c2

Please sign in to comment.