Skip to content

Commit

Permalink
Add logstatter in cgroup and systemd & configure service for chef (#96)
Browse files Browse the repository at this point in the history
* Add rblogsatter cookbook and service

* Add rb-logstatter to systemd services

---------

Co-authored-by: Miguel Negron <[email protected]>
  • Loading branch information
malvads and manegron authored Dec 18, 2023
1 parent d8c45d2 commit 6ee22ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 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 Expand Up @@ -183,6 +185,7 @@
default["redborder"]["systemdservices"]["nginx"] = ["nginx"]
default["redborder"]["systemdservices"]["redborder-cep"] = ["redborder-cep"]
default["redborder"]["systemdservices"]["rb-aioutliers"] = ["rb-aioutliers"]
default["redborder"]["systemdservices"]["rb-logstatter"] = ["rb-logstatter"]
default["redborder"]["systemdservices"]["memcached"] = ["memcached"]
default["redborder"]["systemdservices"]["s3"] = ["minio"]
default["redborder"]["systemdservices"]["mongodb"] = ["mongod"]
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 @@ -314,6 +314,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 6ee22ad

Please sign in to comment.