mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Add ceph/files/radosgw.initd and ceph.radosgw state that installs it;
This commit is contained in:
parent
bb2025337d
commit
c70c11b351
26
sls/ceph/files/radosgw.initd
Normal file
26
sls/ceph/files/radosgw.initd
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}"
|
||||||
|
extra_commands="reload"
|
||||||
|
daemon_id="${RC_SVCNAME#radosgw.}"
|
||||||
|
command="/usr/bin/radosgw"
|
||||||
|
pidfile="/run/ceph/client.${daemon_id}.pid"
|
||||||
|
command_args="-n client.${daemon_id} --pid-file ${pidfile} -c ${ceph_conf}"
|
||||||
|
start_stop_daemon_args="--user ceph --group ceph"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
after net ntpd ntp-client chronyd
|
||||||
|
before netmount
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
checkpath -d -q -o ceph "$(dirname "${pidfile}")"
|
||||||
|
}
|
||||||
|
|
||||||
|
reload() {
|
||||||
|
ebegin "Reloading ${RC_SVCNAME}"
|
||||||
|
start-stop-daemon --signal 1 ${start_stop_daemon_args} --pidfile "${pidfile}"
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=gentoo-init-d:ts=4:sts=4:sw=4:noet:
|
12
sls/ceph/radosgw.sls
Normal file
12
sls/ceph/radosgw.sls
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
include:
|
||||||
|
- ceph.pkg
|
||||||
|
|
||||||
|
/etc/init.d/ragosgw:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://ceph/files/radosgw.initd
|
||||||
|
- mode: 755
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- require:
|
||||||
|
- pkg: ceph
|
||||||
|
|
Loading…
Reference in New Issue
Block a user