puppet-swift/manifests/params.pp
ZhongShengping 6aaf3ab21e Fix lint
The libraries jobs fails with:
manifests/params.pp:9:ERROR: two-space soft tabs not used

Change-Id: I79deb855563567adfd412ed7a04ae181ded58502
Closes-Bug: #1806790
2018-12-12 08:53:11 +08:00

101 lines
4.5 KiB
Puppet

# == Class: swift::params
#
# Parameters for puppet-swift
#
class swift::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
$client_package = "python${pyvers}-swiftclient"
$service_provider = undef
case $::osfamily {
'Debian': {
$package_name = 'swift'
$proxy_package_name = 'swift-proxy'
$proxy_server_service_name = 'swift-proxy'
$object_package_name = 'swift-object'
$object_server_service_name = 'swift-object'
$object_auditor_service_name = 'swift-object-auditor'
$object_reconstructor_service_name = 'swift-object-reconstructor'
$object_replicator_service_name = 'swift-object-replicator'
$object_updater_service_name = 'swift-object-updater'
$object_expirer_package_name = 'swift-object-expirer'
$object_expirer_service_name = 'swift-object-expirer'
$container_package_name = 'swift-container'
$container_server_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'
$container_sync_service_name = 'swift-container-sync'
$container_reconciler_service_name = 'swift-container-reconciler'
$account_package_name = 'swift-account'
$account_server_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 ($::os_package_type == 'debian') {
$signing_dir = '/var/lib/swift'
}else{
$signing_dir = '/var/cache/swift'
}
}
'RedHat': {
$package_name = 'openstack-swift'
$proxy_package_name = 'openstack-swift-proxy'
$proxy_server_service_name = 'openstack-swift-proxy'
$object_package_name = 'openstack-swift-object'
$object_server_service_name = 'openstack-swift-object'
$object_auditor_service_name = 'openstack-swift-object-auditor'
$object_reconstructor_service_name = 'openstack-swift-object-reconstructor'
$object_replicator_service_name = 'openstack-swift-object-replicator'
$object_updater_service_name = 'openstack-swift-object-updater'
$object_expirer_package_name = 'openstack-swift-proxy'
$object_expirer_service_name = 'openstack-swift-object-expirer'
$container_package_name = 'openstack-swift-container'
$container_server_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'
$container_sync_service_name = 'openstack-swift-container-sync'
$container_reconciler_service_name = 'openstack-swift-container-reconciler'
$account_package_name = 'openstack-swift-account'
$account_server_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'
$swift3 = 'openstack-swift-plugin-swift3'
$signing_dir = '/var/cache/swift'
}
default: {
fail("Unsupported osfamily: ${::osfamily} for os ${::operatingsystem}")
}
}
$swift_init_service_names = [
'swift-proxy-server',
'swift-object-auditor',
'swift-object-expirer',
'swift-object-reconstructor',
'swift-object-replicator',
'swift-object-server',
'swift-object-updater',
'swift-account-auditor',
'swift-account-reaper',
'swift-account-replicator',
'swift-account-server',
'swift-container-auditor',
'swift-container-replicator',
'swift-container-server',
'swift-container-sync',
'swift-container-updater',
'swift-container-reconciler',
]
}