Newer
Older
class iaas::profile::neutron::server (
$public_interface = hiera('iaas::public_interface', undef),
$admin_interface = hiera('iaas::admin_interface', undef),
$neutron_password = hiera('iaas::profile::neutron::password', undef),
$nova_password = hiera('iaas::profile::nova::controller::password', undef),
$region = hiera('iaas::region', undef),
$endpoint = hiera('iaas::role::endpoint::main_address', undef),
) {
include iaas::resources::connectors
##Leave commented if DB is not controller
# iaas::resources::database { 'neutron': }
Quentin MACHU
committed
include iaas::profile::neutron::common
class { '::neutron::server':
auth_host => $endpoint,
auth_uri => "http://${endpoint}:5000/v2.0",
##identity_uri set to be added in next OS release
# identity_uri => "http://${endpoint}:35357",
Quentin Machu
committed
auth_password => $neutron_password,
database_connection => $iaas::resources::connectors::neutron,
Quentin Machu
committed
enabled => true,
sync_db => true,
mysql_module => '2.3',
database_idle_timeout => 3600,
l3_ha => false,
}
neutron_config { 'DEFAULT/allow_automatic_l3agent_failover' :
value => "True",
}
Quentin MACHU
committed
class { '::neutron::keystone::auth':
password => $neutron_password,
public_address => $endpoint,
admin_address => $endpoint,
internal_address => $endpoint,
Quentin MACHU
committed
region => $region,
}
class { '::neutron::server::notifications':
nova_url => "http://${endpoint}:8774/v2",
nova_admin_auth_url => "http://${endpoint}:35357/v2.0",
nova_admin_password => $nova_password,
nova_admin_tenant_name => "services",
}