
Adds a class to install the Big Switch ML2 plugin and another one to configure the [restproxy] section of ml2_conf.ini. Currently, only RedHat osfamily is supported. Change-Id: If027762f70695c31dbca6151373a0ebe6e75d071
59 lines
1.8 KiB
Puppet
59 lines
1.8 KiB
Puppet
#
|
|
# Set config file parameters for connecting Neutron server to Big
|
|
# Switch controllers.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*servers*]
|
|
# Comma-separated list of Big Switch controllers.
|
|
# The format is "IP:port,IP:port".
|
|
#
|
|
# [*server_auth*]
|
|
# Credentials for the Big Switch controllers.
|
|
# The format is "username:password".
|
|
#
|
|
# [*auto_sync_on_failure*]
|
|
# (optional) When a failover happens in active/passive Big Switch
|
|
# controllers, resynchronize with the new master server. Defaults to
|
|
# true.
|
|
#
|
|
# [*consistency_interval*]
|
|
# (optional) Interval of a keepalive message sent from Neutron server
|
|
# to a Big Switch controller. Defaults to 60.
|
|
#
|
|
# [*neutron_id*]
|
|
# (optional) Unique identifier of the Neutron instance for the Big
|
|
# Switch controller. Defaults to 'neutron'.
|
|
#
|
|
# [*server_ssl*]
|
|
# (optional) Whether Neutron should use SSL to talk to the Big Switch
|
|
# controllers. Defaults to true.
|
|
#
|
|
# [*ssl_cert_directory*]
|
|
# (optional) Directory where Big Switch controller certificate will be
|
|
# stored. Defaults to '/var/lib/neutron'.
|
|
#
|
|
class neutron::plugins::ml2::bigswitch::restproxy (
|
|
$servers,
|
|
$server_auth,
|
|
|
|
$auto_sync_on_failure = true,
|
|
$consistency_interval = 60,
|
|
$neutron_id = 'neutron',
|
|
$server_ssl = true,
|
|
$ssl_cert_directory = '/var/lib/neutron',
|
|
) {
|
|
require ::neutron::plugins::ml2::bigswitch
|
|
|
|
neutron_plugin_ml2 {
|
|
'restproxy/servers' : value => $servers;
|
|
'restproxy/server_auth' : value => $server_auth;
|
|
|
|
'restproxy/auto_sync_on_failure' : value => $auto_sync_on_failure;
|
|
'restproxy/consistency_interval' : value => $consistency_interval;
|
|
'restproxy/neutron_id' : value => $neutron_id;
|
|
'restproxy/server_ssl' : value => $server_ssl;
|
|
'restproxy/ssl_cert_directory' : value => $ssl_cert_directory;
|
|
}
|
|
}
|