fuel-library/deployment/puppet/swift/manifests/params.pp
Aleksandr Didenko 97d958098c Sync swift module with upstream
v4.1.0 b2fca8ed0af48fa7d68ce711813b54a4ecd9c086

Change-Id: Ia4cd22f07fe71199bf0cae018d01c4bd6b9dc7b2
Implements: blueprint merge-openstack-puppet-modules
2014-10-29 10:17:14 +02:00

58 lines
3.0 KiB
Puppet

class swift::params {
case $::osfamily {
'Debian': {
$package_name = 'swift'
$client_package = 'python-swiftclient'
$proxy_package_name = 'swift-proxy'
$proxy_service_name = 'swift-proxy'
$object_package_name = 'swift-object'
$object_service_name = 'swift-object'
$object_auditor_service_name = 'swift-object-auditor'
$object_replicator_service_name = 'swift-object-replicator'
$object_updater_service_name = 'swift-object-updater'
$container_package_name = 'swift-container'
$container_service_name = 'swift-container'
$container_auditor_service_name = 'swift-container-auditor'
$container_replicator_service_name = 'swift-container-replicator'
$container_updater_service_name = 'swift-container-updater'
$account_package_name = 'swift-account'
$account_service_name = 'swift-account'
$account_auditor_service_name = 'swift-account-auditor'
$account_reaper_service_name = 'swift-account-reaper'
$account_replicator_service_name = 'swift-account-replicator'
$swift3 = 'swift-plugin-s3'
if $::operatingsystem == 'Ubuntu' {
$service_provider = 'upstart'
} else {
$service_provider = undef
}
}
'RedHat': {
$package_name = 'openstack-swift'
$client_package = 'python-swiftclient'
$proxy_package_name = 'openstack-swift-proxy'
$proxy_service_name = 'openstack-swift-proxy'
$object_package_name = 'openstack-swift-object'
$object_service_name = 'openstack-swift-object'
$object_auditor_service_name = 'openstack-swift-object-auditor'
$object_replicator_service_name = 'openstack-swift-object-replicator'
$object_updater_service_name = 'openstack-swift-object-updater'
$container_package_name = 'openstack-swift-container'
$container_service_name = 'openstack-swift-container'
$container_auditor_service_name = 'openstack-swift-container-auditor'
$container_replicator_service_name = 'openstack-swift-container-replicator'
$container_updater_service_name = 'openstack-swift-container-updater'
$account_package_name = 'openstack-swift-account'
$account_service_name = 'openstack-swift-account'
$account_auditor_service_name = 'openstack-swift-account-auditor'
$account_reaper_service_name = 'openstack-swift-account-reaper'
$account_replicator_service_name = 'openstack-swift-account-replicator'
$service_provider = undef
$swift3 = 'openstack-swift-plugin-swift3'
}
default: {
fail("Unsupported osfamily: ${::osfamily} for os ${::operatingsystem}")
}
}
}