fuel-library/deployment/puppet/osnailyfacter/modular/ceph/enable_rados.pp
Andrew Woodward 1ac3e839b3 Clean up Ceph entry points
This moves all of the Ceph task entrypoints to a common location. Previously,
they where in three separate locations which leads to difficulty when
attempting to maintain the module.

Change-Id: Ia84e16e38da65cacd4096fbcf24d405f886e6437
Related-bug: #1467700
2015-07-06 14:28:03 -07:00

18 lines
434 B
Puppet

include ::ceph::params
$radosgw_service = $::ceph::params::service_radosgw
# ensure the service is running and will start on boot
service { $radosgw_service:
ensure => running,
enable => true,
}
# The Ubuntu upstart script is incompatible with the upstart provider
# This will force the service to fall back to the debian init script
if ($::operatingsystem == 'Ubuntu') {
Service['radosgw'] {
provider => 'debian'
}
}