summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2018-07-06 20:43:15 +0200
committerSage Weil <sage@redhat.com>2018-07-06 20:43:15 +0200
commit884a0d24ab7dcda7f6de0fca97f912137a4f97ed (patch)
tree77038e47d8a6d55640a5d6c23083f2c9577fabc6 /debian
parentMerge PR #22858 into master (diff)
parentdebian/control: require sudo (diff)
downloadceph-884a0d24ab7dcda7f6de0fca97f912137a4f97ed.tar.xz
ceph-884a0d24ab7dcda7f6de0fca97f912137a4f97ed.zip
Merge PR #22745 into master
* refs/pull/22745/head: debian/control: require sudo ceph.spec: require sudo ceph.spec: install etc/sudoers.d/ceph-osd-smartctl debian: install etc/sudoers.d/ceph-osd-smartctl sudoers.d/ceph-osd-smartctl: allow user ceph to run smartctl as root Reviewed-by: Erwan Velu <erwan@redhat.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/ceph-osd.install1
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules1
3 files changed, 3 insertions, 0 deletions
diff --git a/debian/ceph-osd.install b/debian/ceph-osd.install
index 39fc29bd59d..39420ca413a 100644
--- a/debian/ceph-osd.install
+++ b/debian/ceph-osd.install
@@ -19,3 +19,4 @@ usr/share/man/man8/ceph-volume-systemd.8
usr/share/man/man8/ceph-osd.8
usr/share/man/man8/ceph-bluestore-tool.8
etc/sysctl.d/30-ceph-osd.conf
+etc/sudoers.d/ceph-osd-smartctl
diff --git a/debian/control b/debian/control
index 783f2a95e25..708f64556e2 100644
--- a/debian/control
+++ b/debian/control
@@ -245,6 +245,7 @@ Package: ceph-osd
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}),
lvm2,
+ sudo,
${misc:Depends},
${python:Depends},
${shlibs:Depends},
diff --git a/debian/rules b/debian/rules
index c5279c8267f..f1e3930a746 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,6 +45,7 @@ override_dh_auto_install:
install -D -m 644 udev/50-rbd.rules $(DESTDIR)/lib/udev/rules.d/50-rbd.rules
install -D -m 644 src/etc-rbdmap $(DESTDIR)/etc/ceph/rbdmap
install -D -m 644 etc/sysctl/90-ceph-osd.conf $(DESTDIR)/etc/sysctl.d/30-ceph-osd.conf
+ install -D -m 600 sudoers.d/ceph-osd-smartctl $(DESTDIR)/etc/sudoers.d/ceph-osd-smartctl
# doc/changelog is a directory, which confuses dh_installchangelogs
override_dh_installchangelogs: