Files
a730e0f5b311ffa65b384cd9fc7a9f7cd20eb71b
puppet-oslo /manifests /concurrency.pp
Xingchao Yu feb5132312 Add define oslo::concurrency
This patch aims to add a new define to manage parameters in
[oslo_concurrency] which belongs to oslo.concurrency.
2016年01月22日 14:27:39 +08:00

28 lines
925 B
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.
# Defaults to false.
#
# [*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.
# Defaults to undef.
#
define oslo::concurrency(
$disable_process_locking = false,
$lock_path = undef,
) {
create_resources($name, {'oslo_concurrency/disable_process_locking' => { value => $disable_process_locking }})
create_resources($name, {'oslo_concurrency/lock_path' => { value => $lock_path }})
}