From: Tom Hughes Date: Fri, 11 Sep 2020 14:14:59 +0000 (+0100) Subject: Prevent installation of prometheus-node-exporter-collectors X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/26ef612058794425ff0bbceccffb27330a326e65 Prevent installation of prometheus-node-exporter-collectors --- 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"