puppet-ironic/manifests/audit.pp
Takashi Kajinami 8120c766b4 Add support for audit middleware options
Change-Id: I3b913bacba0482d3a7ae61ca7bb6c5175c5d10fc
2021-05-05 15:43:06 +09:00

34 lines
865 B
Puppet

# == Class: ironic::audit
#
# Configure audit middleware options
#
# == Params
#
# [*enabled*]
# (Optional) Enable auditing of API requests
# Defaults to $::os_service_default
#
# [*audit_map_file*]
# (Optional) Path to audit map file for ironic-api service.
# Defaults to $::os_service_default
#
# [*ignore_req_list*]
# (Optional) Commma separated list of Ironic REST API HTTP methoeds
# to be ignored during audit logging.
# Defaults to $::os_service_default
#
class ironic::audit (
$enabled = $::os_service_default,
$audit_map_file = $::os_service_default,
$ignore_req_list = $::os_service_default,
) {
include ironic::deps
ironic_config {
'audit/enabled': value => $enabled;
'audit/audit_map_file': value => $audit_map_file;
'audit/ignore_req_list': value => join(any2array($ignore_req_list), ',');
}
}