X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a08c8d97d5cd3666799fb3bef14618d4c7c23398..daff29395a0b52fb994ff33bc2c7086f6a6436b6:/cookbooks/prometheus/resources/collector.rb?ds=sidebyside diff --git a/cookbooks/prometheus/resources/collector.rb b/cookbooks/prometheus/resources/collector.rb index 4a0c22d9b..e82984b14 100644 --- a/cookbooks/prometheus/resources/collector.rb +++ b/cookbooks/prometheus/resources/collector.rb @@ -38,7 +38,7 @@ action :create do private_tmp true protect_system "strict" protect_home true - read_write_paths "/var/lib/prometheus/node-exporter" + read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock", "/var/log"] no_new_privileges true end @@ -78,7 +78,7 @@ action_class do end def executable_path - "/opt/prometheus/collectors/#{new_resource.collector}/#{new_resource.collector}_collector" + "/opt/prometheus-exporters/collectors/#{new_resource.collector}/#{new_resource.collector}_collector" end def executable_options