Files
puppet-octavia/manifests/audit.pp
Takashi Kajinami 083514abb1 Prepare for voxpupuli-puppet-lint-plugins
Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.

Change-Id: I31c67cce601b6065ff74f3f2163ac5d57b031fd7
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-20 00:12:06 +09:00

36 lines
841 B
Puppet

# == Class: octavia::audit
#
# Configure audit middleware options
#
# == Params
#
# [*enabled*]
# (Optional) Enable auditing of API requests
# Defaults to $facts['os_service_default']
#
# [*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']
#
class octavia::audit (
$enabled = $facts['os_service_default'],
$audit_map_file = $facts['os_service_default'],
$ignore_req_list = $facts['os_service_default'],
) {
include octavia::deps
octavia_config {
'audit/enabled': value => $enabled;
}
oslo::audit { 'octavia_config':
audit_map_file => $audit_map_file,
ignore_req_list => $ignore_req_list,
}
}