]> git.openstreetmap.org Git - chef.git/commitdiff
Allow prometheus collectors write access to /var/log
authorTom Hughes <tom@compton.nu>
Sun, 24 Jul 2022 21:37:27 +0000 (22:37 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 24 Jul 2022 21:37:27 +0000 (22:37 +0100)
cookbooks/prometheus/resources/collector.rb

index aa02f9d3499a7260dd2c36fde687021902c6c1a4..e82984b143354b45326bb12d47eb71c51d1fed8b 100644 (file)
@@ -38,7 +38,7 @@ action :create do
     private_tmp true
     protect_system "strict"
     protect_home true
-    read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock"]
+    read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock", "/var/log"]
     no_new_privileges true
   end