Extend radosgw to support systemd on centos
Ceph Jewel from CentOS SIG and Ceph is now systemd based for CentOS/RHEL Change-Id: If627a50d8aa0cba0f1b4e00dfd43103c7eaff6f6
This commit is contained in:
@@ -170,6 +170,13 @@ define ceph::rgw (
|
|||||||
provider => $::ceph::params::service_provider,
|
provider => $::ceph::params::service_provider,
|
||||||
}
|
}
|
||||||
# Everything else that is supported by puppet-ceph should run systemd.
|
# Everything else that is supported by puppet-ceph should run systemd.
|
||||||
|
} elsif $::service_provider == 'systemd' {
|
||||||
|
Service {
|
||||||
|
name => "radosgw-${name}",
|
||||||
|
start => "systemctl start ceph-radosgw@${name}",
|
||||||
|
stop => "systemctl stop ceph-radosgw@${name}",
|
||||||
|
status => "systemctl status ceph-radosgw@${name}",
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if $rgw_enable {
|
if $rgw_enable {
|
||||||
file { "${rgw_data}/sysvinit":
|
file { "${rgw_data}/sysvinit":
|
||||||
|
Reference in New Issue
Block a user