77be0932fc
This patch bump puppet-lint gem and add metadata and parameters checks. Metadata lint issues (SPDX ID), missing parameters documentation and syntaxe lint issues was also fixed in this patch Doc for metadata syntax. https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html Change-Id: Ia6bb3483b3ffdbeed60b58702a36e0c7b31ffb86
60 lines
3.0 KiB
Puppet
60 lines
3.0 KiB
Puppet
# == Class: swift::params
|
|
#
|
|
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}")
|
|
}
|
|
}
|
|
}
|