
Fix new lint errors detected when full of the voxpupili lint plugins are enabled. Change-Id: I8ebe256188945780f730ab51fc07ee55d2ecd508 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
31 lines
814 B
Puppet
31 lines
814 B
Puppet
# == Define: oslo::audit
|
|
#
|
|
# Configure audit middleware options
|
|
#
|
|
# == Params
|
|
#
|
|
# [*config*]
|
|
# (Optional) The resource type used to apply configuration parameters.
|
|
# Defaults to $name
|
|
#
|
|
# [*audit_map_file*]
|
|
# (Optional) Path to audit map file.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*ignore_req_list*]
|
|
# (Optional) List of REST API HTTP methods to be ignored during audit
|
|
# logging.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
define oslo::audit (
|
|
$config = $name,
|
|
$audit_map_file = $facts['os_service_default'],
|
|
$ignore_req_list = $facts['os_service_default'],
|
|
) {
|
|
$options = {
|
|
'audit/audit_map_file' => { 'value' => $audit_map_file },
|
|
'audit/ignore_req_list' => { 'value' => join(any2array($ignore_req_list), ',') },
|
|
}
|
|
create_resources($config, $options)
|
|
}
|