File: audit.pp

package info (click to toggle)
puppet-module-octavia 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,588 kB
  • sloc: ruby: 3,940; python: 38; makefile: 12; sh: 10
file content (33 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# == 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), ',');
  }
}