From 6c29db42585e5d85627ec8ee9f3639b0f482caa4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 24 Jul 2022 22:29:54 +0100 Subject: [PATCH] Allow prometheus collectors write access to /var/lock --- cookbooks/prometheus/resources/collector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/resources/collector.rb b/cookbooks/prometheus/resources/collector.rb index ef103c3c0..aa02f9d34 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"] no_new_privileges true end -- 2.39.5