Merge "Ensure vmware-nsx package is installed"
This commit is contained in:
commit
c6f960f30e
|
@ -84,6 +84,12 @@ class neutron::plugins::nsx (
|
||||||
include neutron::deps
|
include neutron::deps
|
||||||
include neutron::params
|
include neutron::params
|
||||||
|
|
||||||
|
package { 'vmware-nsx':
|
||||||
|
ensure => $package_ensure,
|
||||||
|
name => $::neutron::params::nsx_plugin_package,
|
||||||
|
tag => ['openstack', 'neutron-package'],
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/neutron/plugins/vmware':
|
file { '/etc/neutron/plugins/vmware':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
tag => 'neutron-config-file',
|
tag => 'neutron-config-file',
|
||||||
|
|
|
@ -33,6 +33,14 @@ describe 'neutron::plugins::nsx' do
|
||||||
context 'with defaults' do
|
context 'with defaults' do
|
||||||
it { should contain_class('neutron::params') }
|
it { should contain_class('neutron::params') }
|
||||||
|
|
||||||
|
it 'should install the plugin package' do
|
||||||
|
should contain_package('vmware-nsx').with(
|
||||||
|
:ensure => 'present',
|
||||||
|
:name => 'vmware-nsx',
|
||||||
|
:tag => ['openstack', 'neutron-package']
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
it 'should have a nsx plugin ini file' do
|
it 'should have a nsx plugin ini file' do
|
||||||
should contain_file('/etc/neutron/plugins/vmware/nsx.ini').with(
|
should contain_file('/etc/neutron/plugins/vmware/nsx.ini').with(
|
||||||
:ensure => 'file',
|
:ensure => 'file',
|
||||||
|
|
Loading…
Reference in New Issue