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:
Keith Schincke
2016-07-18 15:02:40 -04:00
parent 9dbded9494
commit 1383b9c0a8

View File

@@ -170,6 +170,13 @@ define ceph::rgw (
provider => $::ceph::params::service_provider,
}
# 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 {
if $rgw_enable {
file { "${rgw_data}/sysvinit":