Files
puppet-octavia/manifests/audit.pp
Takashi Kajinami d02d2dd124 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I3f17eb12408f4b88bf72f4de31cdf8f8fa008c2a
2023-03-02 12:52:45 +09:00

34 lines
911 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 for octavia-api service.
# Defaults to $facts['os_service_default']
#
# [*ignore_req_list*]
# (Optional) Comma separated list of octavia 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;
'audit/audit_map_file': value => $audit_map_file;
'audit/ignore_req_list': value => join(any2array($ignore_req_list), ',');
}
}