Skip to content

Commit

Permalink
Add rblogsatter cookbook and service
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Dec 12, 2023
1 parent 4c33f48 commit d18d791
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
default["redborder"]["memory_services"]["hadoop-resourcemanager"] = {"count" => 10, "memory" => 0}
default["redborder"]["memory_services"]["snmp"] = {"count" => 5, "memory" => 0, "max_limit" => 10000 }
default["redborder"]["memory_services"]["redborder-monitor"] = {"count" => 5, "memory" => 0, "max_limit" => 20000 }
default["redborder"]["memory_services"]["rb-logstatter"] = {"count" => 5, "memory" => 0, "max_limit" => 20000 }
default["redborder"]["memory_services"]["webui"] = {"count" => 40, "memory" => 0 }
default["redborder"]["memory_services"]["f2k"] = { "count" => 40, "memory" => 0 }
default["redborder"]["memory_services"]["redborder-nmsp"] = {"count" => 10, "memory" => 0 }
Expand Down Expand Up @@ -146,6 +147,7 @@
default["redborder"]["services"]["nginx"] = false
default["redborder"]["services"]["redborder-cep"] = false
default["redborder"]["services"]["rb-aioutliers"] = false
default["redborder"]["services"]["rb-logstatter"] = true
default["redborder"]["services"]["memcached"] = true
default["redborder"]["services"]["rb-monitor"] = false
default["redborder"]["services"]["secor"] = false
Expand Down
1 change: 1 addition & 0 deletions resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
depends 'rb-selinux'
#depends 'rbaioutliers'
depends 'rbcgroup'
depends 'rblogstatter'
4 changes: 4 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@
action (node["redborder"]["services"]["redborder-ale"] ? [:add, :register] : [:remove, :deregister])
end

rblogstatter_config "Configure redborder-logstatter" do
action (node["redborder"]["services"]["rb-logstatter"] ? :add : :remove)
end

#freeradius_config "Configure radiusd" do
# flow_nodes node["redborder"]["sensors_info_all"]["flow-sensor"]
# action (node["redborder"]["services"]["radiusd"] ? [:config_common, :config_manager, :register] : [:remove, :deregister])
Expand Down

0 comments on commit d18d791

Please sign in to comment.