Expose nova security_group_api parameter
This exposes nova's security_group_api parameter so user can set this accordingly to nova/neutron or something else if necessary. Change-Id: I0f166220b819a20a8c6cbc08a4640f29dbac2a0a
This commit is contained in:
@@ -240,6 +240,7 @@ class openstack::controller (
|
||||
$neutron_db_name = 'neutron',
|
||||
$neutron_auth_url = 'http://127.0.0.1:35357/v2.0',
|
||||
$enable_neutron_server = true,
|
||||
$security_group_api = 'neutron',
|
||||
# swift
|
||||
$swift = false,
|
||||
$swift_public_address = false,
|
||||
@@ -402,6 +403,7 @@ class openstack::controller (
|
||||
neutron => $neutron,
|
||||
neutron_user_password => $neutron_user_password,
|
||||
metadata_shared_secret => $metadata_shared_secret,
|
||||
security_group_api => $security_group_api,
|
||||
# Nova
|
||||
nova_admin_tenant_name => $nova_admin_tenant_name,
|
||||
nova_admin_user => $nova_admin_user,
|
||||
|
@@ -74,6 +74,7 @@ class openstack::nova::controller (
|
||||
$neutron = true,
|
||||
$neutron_user_password = false,
|
||||
$metadata_shared_secret = undef,
|
||||
$security_group_api = 'neutron',
|
||||
# Nova
|
||||
$nova_admin_tenant_name = 'services',
|
||||
$nova_admin_user = 'nova',
|
||||
@@ -217,6 +218,7 @@ class openstack::nova::controller (
|
||||
neutron_admin_tenant_name => 'services',
|
||||
neutron_admin_username => 'neutron',
|
||||
neutron_admin_auth_url => "http://${keystone_host}:35357/v2.0",
|
||||
security_group_api => $security_group_api,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -597,6 +597,8 @@ describe 'openstack::controller' do
|
||||
|
||||
it { should_not contain_class('nova::network') }
|
||||
|
||||
it { should contain_class('nova::network::neutron').with(:security_group_api => 'neutron') }
|
||||
|
||||
it 'should configure neutron' do
|
||||
|
||||
should contain_class('openstack::neutron').with(
|
||||
|
@@ -68,7 +68,8 @@ describe 'openstack::nova::controller' do
|
||||
:neutron_url => "http://127.0.0.1:9696",
|
||||
:neutron_admin_tenant_name => 'services',
|
||||
:neutron_admin_username => 'neutron',
|
||||
:neutron_admin_auth_url => "http://127.0.0.1:35357/v2.0"
|
||||
:neutron_admin_auth_url => "http://127.0.0.1:35357/v2.0",
|
||||
:security_group_api => 'neutron'
|
||||
)
|
||||
|
||||
['nova::scheduler', 'nova::objectstore', 'nova::cert', 'nova::consoleauth', 'nova::conductor'].each do |x|
|
||||
|
Reference in New Issue
Block a user