
Now starting these services on all distros swift-account-auditor swift-container-auditor swift-object-auditor swift-account-reaper swift-container-updater swift-object-updater Change-Id: I98cfcef3b43a2bdad6f359e4e4098a6113245353
41 lines
1.3 KiB
Puppet
41 lines
1.3 KiB
Puppet
class swift::storage::container(
|
|
$package_ensure = 'present'
|
|
) {
|
|
swift::storage::generic { 'container':
|
|
package_ensure => $package_ensure
|
|
}
|
|
|
|
service { 'swift-container-updater':
|
|
name => $::swift::params::container_updater_service_name,
|
|
ensure => running,
|
|
enable => true,
|
|
provider => $::swift::params::service_provider,
|
|
require => Package['swift-container'],
|
|
}
|
|
service { 'swift-container-auditor':
|
|
name => $::swift::params::container_auditor_service_name,
|
|
ensure => running,
|
|
enable => true,
|
|
provider => $::swift::params::service_provider,
|
|
require => Package['swift-container'],
|
|
}
|
|
|
|
if $operatingsystem == 'Ubuntu' {
|
|
# The following service conf is missing in Ubunty 12.04
|
|
file { '/etc/init/swift-container-sync.conf':
|
|
source => 'puppet:///modules/swift/swift-container-sync.conf.upstart',
|
|
require => Package['swift-container'],
|
|
}
|
|
file { '/etc/init.d/swift-container-sync':
|
|
ensure => link,
|
|
target => '/lib/init/upstart-job',
|
|
}
|
|
service { 'swift-container-sync':
|
|
ensure => running,
|
|
enable => true,
|
|
provider => $::swift::params::service_provider,
|
|
require => File['/etc/init/swift-container-sync.conf', '/etc/init.d/swift-container-sync']
|
|
}
|
|
}
|
|
}
|