mirror of
https://github.com/ceph/ceph
synced 2024-12-21 10:54:42 +00:00
7ca39fa92b
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>
5 lines
202 B
Plaintext
5 lines
202 B
Plaintext
## 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/*
|