X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5ace4fe37e3efcb81461114649967b8bc23976f8..0475454f0df92b64713b744a9379fc6142f8438b:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 6095cceeb..48e8f2888 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -186,6 +186,8 @@ if File.exist?("/etc/default/grub") end end +package "initramfs-tools" + execute "update-initramfs" do action :nothing command "update-initramfs -u -k all" @@ -536,7 +538,7 @@ if disks.count.positive? prometheus_collector "smart" do interval "15m" user "root" - capability_bounding_set "CAP_SYS_ADMIN" + capability_bounding_set %w[CAP_DAC_OVERRIDE CAP_SYS_ADMIN CAP_SYS_RAWIO] private_devices false private_users false protect_clock false @@ -700,7 +702,7 @@ prometheus_collector "ohai" do interval "15m" user "root" proc_subset "all" - capability_bounding_set "CAP_SYS_ADMIN" + capability_bounding_set %w[CAP_DAC_OVERRIDE CAP_SYS_ADMIN] private_devices false private_users false protect_clock false