548d68cf35
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: Ib0bdb6329a438ac44886ee0494d0c52ad344a1bf
31 lines
1.1 KiB
Puppet
31 lines
1.1 KiB
Puppet
# == Define: oslo::concurrency
|
|
#
|
|
# Configure oslo_concurrency options
|
|
#
|
|
# This resource configures Oslo concurrency resources for an OpenStack service.
|
|
# It will manage the [oslo_concurrency] section in the given config resource.
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*disable_process_locking*]
|
|
# (Optional) Enables or disables inter-process locks. (boolean value)
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*lock_path*]
|
|
# (Optional) Directory to use for lock files. For security, the specified directory
|
|
# should only be writable by the user running the processes that need locking.
|
|
# If external locks are used, a lock path must be set. (string value)
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
define oslo::concurrency(
|
|
$disable_process_locking = $facts['os_service_default'],
|
|
$lock_path = $facts['os_service_default'],
|
|
) {
|
|
$concurrency_options = {
|
|
'oslo_concurrency/disable_process_locking' => { value => $disable_process_locking },
|
|
'oslo_concurrency/lock_path' => { value => $lock_path }
|
|
}
|
|
|
|
create_resources($name, $concurrency_options)
|
|
}
|