Change default value to $::os_service_default

The following define has been changed:
   - oslo::concurrency
   - oslo::versionedobjects
This commit is contained in:
Xingchao Yu 2016-01-22 19:34:25 +08:00
parent 6ad427bcdf
commit c961197d34
2 changed files with 6 additions and 6 deletions

View File

@ -9,17 +9,17 @@
# #
# [*disable_process_locking*] # [*disable_process_locking*]
# (Optional) Enables or disables inter-process locks. # (Optional) Enables or disables inter-process locks.
# Defaults to false. # Defaults to $::os_service_default.
# #
# [*lock_path*] # [*lock_path*]
# (Optional) Directory to use for lock files. For security, the specified directory # (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. # should only be writable by the user running the processes that need locking.
# If external locks are used, a lock path must be set. # If external locks are used, a lock path must be set.
# Defaults to undef. # Defaults to $::os_service_default.
# #
define oslo::concurrency( define oslo::concurrency(
$disable_process_locking = false, $disable_process_locking = $::os_service_default,
$lock_path = undef, $lock_path = $::os_service_default,
) { ) {
create_resources($name, {'oslo_concurrency/disable_process_locking' => { value => $disable_process_locking }}) create_resources($name, {'oslo_concurrency/disable_process_locking' => { value => $disable_process_locking }})
create_resources($name, {'oslo_concurrency/lock_path' => { value => $lock_path }}) create_resources($name, {'oslo_concurrency/lock_path' => { value => $lock_path }})

View File

@ -9,10 +9,10 @@
# #
# [*fatal_exception_format_errors*] # [*fatal_exception_format_errors*]
# (Optional) Make exception message format errors fatal. # (Optional) Make exception message format errors fatal.
# Defaults to false. # Defaults to $::os_service_default.
# #
define oslo::versionedobjects( define oslo::versionedobjects(
$fatal_exception_format_errors = false, $fatal_exception_format_errors = $::os_service_default,
) { ) {
create_resources($name, {'oslo_versionedobjects/fatal_exception_format_errors' => { value => $fatal_exception_format_errors }}) create_resources($name, {'oslo_versionedobjects/fatal_exception_format_errors' => { value => $fatal_exception_format_errors }})
} }