puppet-swift/manifests/params.pp
Takashi Kajinami 424b861a57 Deprecate the remaining option for Keystone PKI token
... because it was already removed from keystonemiddleware[1].

[1] b3e84aafc0302b1a87754f438696794076ba844f

Change-Id: I123ab64e77076d2eada6c9cdc4f6526398b071d1
2020-06-08 15:41:00 +00:00

88 lines
4.1 KiB
Puppet

# == Class: swift::params
#
# Parameters for puppet-swift
#
class swift::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::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'
}
'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'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
module ${module_name} only support osfamily RedHat and Debian")
}
}
$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',
]
}