File: quota.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 (56 lines) | stat: -rw-r--r-- 2,060 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# == Class: octavia::quota
#
# Setup and configure octavia quotas.
#
# === Parameters:
#
# [*default_load_balancer_quota*]
#   (optional) Default per project load balancer quota
#   Defaults to $facts['os_service_default']
#
# [*default_listener_quota*]
#   (optional) Default per project listener quota.
#   Defaults to $facts['os_service_default']
#
# [*default_member_quota*]
#   (optional)  Default per project member quota.
#   Defaults to $facts['os_service_default']
#
# [*default_pool_quota*]
#   (optional)  Default per project pool quota.
#   Defaults to $facts['os_service_default']
#
# [*default_health_monitor_quota*]
#   (optional) Default per project health monitor quota.
#   Defaults to $facts['os_service_default']
#
# [*default_l7policy_quota*]
#   (optional) Default per project l7policy quota.
#   Defaults to $facts['os_service_default']
#
# [*default_l7rule_quota*]
#   (optional) Default per project l7rule quota.
#   Defaults to $facts['os_service_default']
#
class octavia::quota (
  $default_load_balancer_quota   = $facts['os_service_default'],
  $default_listener_quota        = $facts['os_service_default'],
  $default_member_quota          = $facts['os_service_default'],
  $default_pool_quota            = $facts['os_service_default'],
  $default_health_monitor_quota  = $facts['os_service_default'],
  $default_l7policy_quota        = $facts['os_service_default'],
  $default_l7rule_quota          = $facts['os_service_default'],
) {

  include octavia::deps

  octavia_config {
    'quotas/default_load_balancer_quota':  value => $default_load_balancer_quota;
    'quotas/default_listener_quota':       value => $default_listener_quota;
    'quotas/default_member_quota':         value => $default_member_quota;
    'quotas/default_pool_quota':           value => $default_pool_quota;
    'quotas/default_health_monitor_quota': value => $default_health_monitor_quota;
    'quotas/default_l7policy_quota':       value => $default_l7policy_quota;
    'quotas/default_l7rule_quota':         value => $default_l7rule_quota;
  }
}