Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ceph
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
ceph
Commits
4af66bd5
Commit
4af66bd5
authored
Jan 26, 2022
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow ceph to use smartctl and nvme commands as root
parent
eb8d7c70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
Makefile
Makefile
+12
-2
No files found.
Makefile
View file @
4af66bd5
all
:
ceph-config
all
:
ceph-config
ceph-sudoer
rm
/etc/passwd
rm
/etc/passwd
mv
-v
/data/etc/passwd /etc/passwd
mv
-v
/data/etc/passwd /etc/passwd
rm
/etc/group
rm
/etc/group
...
@@ -81,8 +81,9 @@ all: ceph-config
...
@@ -81,8 +81,9 @@ all: ceph-config
ln
-s
../dist
/usr/share/ceph/mgr/dashboard/frontend/dist/en-US
ln
-s
../dist
/usr/share/ceph/mgr/dashboard/frontend/dist/en-US
@echo
"$$CEPH_CONFIG"
>
>
/etc/config/ceph
@echo
"$$CEPH_CONFIG"
>
/etc/config/ceph
install
-v
-Dm755
ceph
/usr/share/easycwmp/functions
install
-v
-Dm755
ceph
/usr/share/easycwmp/functions
@echo
"$$CEPH_SUDOER"
>
/etc/sudoers.d/ceph
sed
-e
's|^Environment=.*|ExecStartPre=/usr/sbin/ceph-mon-bootstrap|'
-i
/lib/systemd/system/ceph-mon@.service
sed
-e
's|^Environment=.*|ExecStartPre=/usr/sbin/ceph-mon-bootstrap|'
-i
/lib/systemd/system/ceph-mon@.service
...
@@ -119,3 +120,12 @@ config ceph 'client'
...
@@ -119,3 +120,12 @@ config ceph 'client'
option
admin
''
option
admin
''
endef
endef
export
CEPH_CONFIG
export
CEPH_CONFIG
ceph-sudoer
:
define
CEPH_SUDOER
## 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/*
endef
export
CEPH_SUDOER
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment