diff --git a/resources/attributes/default.rb b/resources/attributes/default.rb index e03d2f3c..9307d58e 100644 --- a/resources/attributes/default.rb +++ b/resources/attributes/default.rb @@ -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 } @@ -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 diff --git a/resources/metadata.rb b/resources/metadata.rb index b63d1bf0..a07d60c2 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -40,3 +40,4 @@ depends 'rb-selinux' #depends 'rbaioutliers' depends 'rbcgroup' +depends 'rblogstatter' diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index 32ca6a21..6951302f 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -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])