Puppet Class: octavia::networking
- Defined in:
- manifests/networking.pp
Overview
Class: octavia::networking
Setup and configure octavia.conf networking section.
Parameters:
- max_retries
-
(Optional) The maximum attempts to retry an acction with the networking service. Defaults to $::os_service_default
- retry_interval
-
(Optional) Seocnds to wait before retrying an action with the networking service. Defaults to $::os_service_default
- retry_backoff
-
(Optional) The seconds to backoff retry attempts. Defaults to $::os_service_default
- retry_max
-
(Optional) The maximum interval in seconds between retry attempts. Defaults to $::os_service_default
- port_detach_timeout
-
(Optional) Seconds to wait for a port to detach from an amphora. Defaults to $::os_service_default
- allow_vip_network_id
-
(Optional) Can users supply a network_id for their VIP? Defaults to $::os_service_default
- allow_vip_subnet_id
-
(Optional) Can users supply a subnet_id for their VIP? Defaults to $::os_service_default
- allow_vip_port_id
-
(Optional) Can users supply a port_id for their VIP? Defaults to $::os_service_default
- valid_vip_networks
-
(Optional) List of network_ids that are valid for VIP creation. Defaoutls to $::os_service_default
- reserved_ips
-
(Optional) List of IP addresses reserved from being used for member addresses. Defaults to $::os_service_default
- allow_invisible_resource_usage
-
(Optional) When True, users can use netwokr resources they cannot normally see as VIP or member subnets. Defaults to $::os_service_default
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'manifests/networking.pp', line 55
class octavia::networking (
$max_retries = $::os_service_default,
$retry_interval = $::os_service_default,
$retry_backoff = $::os_service_default,
$retry_max = $::os_service_default,
$port_detach_timeout = $::os_service_default,
$allow_vip_network_id = $::os_service_default,
$allow_vip_subnet_id = $::os_service_default,
$allow_vip_port_id = $::os_service_default,
$valid_vip_networks = $::os_service_default,
$reserved_ips = $::os_service_default,
$allow_invisible_resource_usage = $::os_service_default,
) {
include octavia::deps
$port_detach_timeout_real = pick($::octavia::controller::port_detach_timeout, $port_detach_timeout)
octavia_config {
'networking/max_retries': value => $max_retries;
'networking/retry_interval': value => $retry_interval;
'networking/retry_backoff': value => $retry_backoff;
'networking/retry_max': value => $retry_max;
'networking/port_detach_timeout': value => $port_detach_timeout_real;
'networking/allow_vip_network_id': value => $allow_vip_network_id;
'networking/allow_vip_subnet_id': value => $allow_vip_subnet_id;
'networking/allow_vip_port_id': value => $allow_vip_port_id;
'networking/valid_vip_networks': value => join(any2array($valid_vip_networks), ',');
'networking/reserved_ips': value => join(any2array($reserved_ips), ',');
'networking/allow_invisible_resource_usage': value => $allow_invisible_resource_usage;
}
}
|