Skip to content

Commit

Permalink
Merge pull request #19 from redBorder/bug/#17078_rb_exporter
Browse files Browse the repository at this point in the history
add rb_exporter service in redborder proxy
  • Loading branch information
malvads authored Apr 25, 2024
2 parents 50cee35 + b5de2fb commit 8a6045f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions resources/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"]

3 changes: 2 additions & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
depends 'rbnmsp'
depends 'rbale'
depends 'n2klocd'
depends 'rb-exporter'
#depends 'freeradius'
depends 'k2http'
#depends 'ohai'
depends 'rbcgroup'
depends 'rbcgroup'
4 changes: 4 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 8a6045f

Please sign in to comment.