Merge "Ensure that test networks are shared"
This commit is contained in:
@@ -117,6 +117,7 @@ class openstack::provision(
|
|||||||
ensure => present,
|
ensure => present,
|
||||||
router_external => true,
|
router_external => true,
|
||||||
tenant_name => $admin_tenant_name,
|
tenant_name => $admin_tenant_name,
|
||||||
|
shared => true,
|
||||||
}
|
}
|
||||||
quantum_subnet { $public_subnet_name:
|
quantum_subnet { $public_subnet_name:
|
||||||
ensure => 'present',
|
ensure => 'present',
|
||||||
@@ -127,6 +128,7 @@ class openstack::provision(
|
|||||||
quantum_network { $private_network_name:
|
quantum_network { $private_network_name:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
tenant_name => $tenant_name,
|
tenant_name => $tenant_name,
|
||||||
|
shared => true,
|
||||||
}
|
}
|
||||||
quantum_subnet { $private_subnet_name:
|
quantum_subnet { $private_subnet_name:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@@ -24,6 +24,20 @@ describe 'openstack::provision' do
|
|||||||
:tempest_repo_revision => 'stable/grizzly'
|
:tempest_repo_revision => 'stable/grizzly'
|
||||||
) }
|
) }
|
||||||
|
|
||||||
|
it 'should configure quantum networks' do
|
||||||
|
should contain_quantum_network('public').with(
|
||||||
|
'ensure' => 'present',
|
||||||
|
'router_external' => true,
|
||||||
|
'tenant_name' => 'admin',
|
||||||
|
'shared' => true
|
||||||
|
)
|
||||||
|
should contain_quantum_network('private').with(
|
||||||
|
'ensure' => 'present',
|
||||||
|
'tenant_name' => 'demo',
|
||||||
|
'shared' => true
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user