Puppet Class: swift::storage::container
- Defined in:
- manifests/storage/container.pp
Overview
Parameters
- allowed_sync_hosts
-
A list of hosts allowed in the X-Container-Sync-To
field for containers. Defaults to one entry list '127.0.0.1'.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'manifests/storage/container.pp', line 7
class swift::storage::container(
$package_ensure = 'present',
$allowed_sync_hosts = ['127.0.0.1'],
) {
swift::storage::generic { 'container':
package_ensure => $package_ensure
}
include swift::params
service { 'swift-container-updater':
ensure => running,
name => $::swift::params::container_updater_service_name,
enable => true,
provider => $::swift::params::service_provider,
require => Package['swift-container'],
}
service { 'swift-container-auditor':
ensure => running,
name => $::swift::params::container_auditor_service_name,
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']
}
}
}
|