summaryrefslogtreecommitdiffstats
path: root/sudoers.d
diff options
context:
space:
mode:
authorYaarit Hatuka <yaarit@redhat.com>2021-08-25 04:12:08 +0200
committerYaarit Hatuka <yaarit@redhat.com>2021-08-25 15:20:23 +0200
commit7ca39fa92b47427af2f1c6000c653bb4dffc47fe (patch)
tree944c5cad8b77b123f3f488fb1b36fc6ce64ccbbc /sudoers.d
parentMerge pull request #42806 from zdover23/wip-doc-2021-08-17-rbd-nomad-3-of-x (diff)
downloadceph-7ca39fa92b47427af2f1c6000c653bb4dffc47fe.tar.xz
ceph-7ca39fa92b47427af2f1c6000c653bb4dffc47fe.zip
rpm, debian: move smartmontools and nvme-cli to ceph-base
We wish to be able to scrape SMART and NVMe metrics from OSD and MON nodes. For this we require / recommend smartmontools and nvme-cli dependencies for both the ceph-osd and ceph-mon packages. However, the sudoers file (which is required for invoking `smartctl` by user 'ceph') was installed only in the ceph-osd package. Since different packages cannot own the same file, and because we want to be able to scrape from every daemon, we move the dependencies and the sudoers installation to ceph-base. For generalization, we rename: sudoers.d/ceph-osd-smartctl -> sudoers.d/ceph-smartctl Fixes: https://tracker.ceph.com/issues/50657 Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
Diffstat (limited to 'sudoers.d')
-rw-r--r--sudoers.d/ceph-smartctl (renamed from sudoers.d/ceph-osd-smartctl)2
1 files changed, 1 insertions, 1 deletions
diff --git a/sudoers.d/ceph-osd-smartctl b/sudoers.d/ceph-smartctl
index f53f6af9bc0..2649cea2b32 100644
--- a/sudoers.d/ceph-osd-smartctl
+++ b/sudoers.d/ceph-smartctl
@@ -1,4 +1,4 @@
-## allow ceph-osd (which runs as user ceph) to collect device health metrics
+## allow ceph daemons (which run as user ceph) to collect device health metrics
ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*