From 26ef612058794425ff0bbceccffb27330a326e65 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 11 Sep 2020 15:14:59 +0100 Subject: [PATCH] Prevent installation of prometheus-node-exporter-collectors --- cookbooks/prometheus/recipes/default.rb | 1 + cookbooks/prometheus/resources/exporter.rb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/prometheus/recipes/default.rb b/cookbooks/prometheus/recipes/default.rb index 41d28e58d..824af896c 100644 --- a/cookbooks/prometheus/recipes/default.rb +++ b/cookbooks/prometheus/recipes/default.rb @@ -19,4 +19,5 @@ prometheus_exporter "node" do port 9100 + package_options "--no-install-recommends" end diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index d3652d3b8..8bbf1e5a4 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -23,11 +23,14 @@ property :exporter, :kind_of => String, :name_property => true property :port, :kind_of => Integer, :required => [:create] property :listen_switch, :kind_of => String, :default => "web.listen-address" property :package, :kind_of => String +property :package_options, :kind_of => String property :defaults, :kind_of => String property :service, :kind_of => String action :create do - package package_name + package package_name do + options new_resource.package_options + end template defaults_name do source "defaults.erb" -- 2.39.5