diff --git a/resources/attributes/default.rb b/resources/attributes/default.rb index 60b3d4e..bbf3870 100644 --- a/resources/attributes/default.rb +++ b/resources/attributes/default.rb @@ -60,6 +60,7 @@ default["redborder"]["services"]["n2klocd"] = true default["redborder"]["services"]["radiusd"] = true default["redborder"]["services"]["k2http"] = true +default["redborder"]["services"]["redborder-exporter"] = true default["redborder"]["systemdservices"]["chef-client"] = ["chef-client"] default["redborder"]["systemdservices"]["kafka"] = ["kafka"] @@ -77,4 +78,5 @@ default["redborder"]["systemdservices"]["n2klocd"] = ["n2klocd"] default["redborder"]["systemdservices"]["radiusd"] = ["radiusd"] default["redborder"]["systemdservices"]["k2http"] = ["k2http"] +default["redborder"]["systemdservices"]["redborder-exporter"] = ["redborder-exporter"] diff --git a/resources/metadata.rb b/resources/metadata.rb index 7660bd6..cb0ef50 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -20,7 +20,8 @@ depends 'rbnmsp' depends 'rbale' depends 'n2klocd' +depends 'rb-exporter' #depends 'freeradius' depends 'k2http' #depends 'ohai' -depends 'rbcgroup' +depends 'rbcgroup' \ No newline at end of file diff --git a/resources/recipes/configure.rb b/resources/recipes/configure.rb index c561b06..7a0f4a4 100644 --- a/resources/recipes/configure.rb +++ b/resources/recipes/configure.rb @@ -95,6 +95,10 @@ action (proxy_services["n2klocd"] ? [:add] : [:remove]) end +rb_exporter_config "Configure rb-exporter" do + action (proxy_services["redborder-exporter"] ? [:add] : [:remove]) +end + # TODO: replace node["redborder"]["services"] in action with "proxy_services".. rbale_config "Configure redborder-ale" do ale_nodes node["redborder"]["sensors_info_all"]["ale-sensor"]