puppet-octavia/manifests/neutron.pp
Tobias Urdin d2a9586a59 Add octavia::neutron to configure nova section
Adds new class octavia::neutron that can be used to
configure the neutron section in octavia.conf

Change-Id: I124a1a02afaf9f937b1e57d0362db53eeb026954
2018-08-30 14:19:24 +02:00

39 lines
1.0 KiB
Puppet

# == Class: octavia::neutron
#
# Setup and configure octavia.conf neutron section.
#
# === Parameters:
#
# [*service_name*]
# (Optional) The name of the neutron service in the keystone catalog.
# Defaults to $::os_service_default
#
# [*endpoint*]
# (Optional) Custom neutron endpoint if override is necessary.
# Defaults to $::os_service_default
#
# [*region_name*]
# (Optional) Region in catalog to use for neutron.
# Defaults to $::os_service_default
#
# [*endpoint_type*]
# (Optional) Endpoint type in catalog to use for neutron.
# Defaults to $::os_service_default
#
class octavia::neutron (
$service_name = $::os_service_default,
$endpoint = $::os_service_default,
$region_name = $::os_service_default,
$endpoint_type = $::os_service_default,
) {
include ::octavia::deps
octavia_config {
'neutron/service_name': value => $service_name;
'neutron/endpoint': value => $endpoint;
'neutron/region_name': value => $region_name;
'neutron/endpoint_type': value => $endpoint_type;
}
}