]> git.openstreetmap.org Git - chef.git/commitdiff
Allow CAP_SYS_RAWIO for the smart collector
authorTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 11:42:40 +0000 (11:42 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 11:42:40 +0000 (11:42 +0000)
cookbooks/hardware/recipes/default.rb

index 6095cceeb4f939c70fd311b6fe8c9e5954d991aa..3d1d8aa1986d2ea53842eb7a3c141bdda550883f 100644 (file)
@@ -536,7 +536,7 @@ if disks.count.positive?
   prometheus_collector "smart" do
     interval "15m"
     user "root"
-    capability_bounding_set "CAP_SYS_ADMIN"
+    capability_bounding_set %w[CAP_SYS_ADMIN CAP_SYS_RAWIO]
     private_devices false
     private_users false
     protect_clock false