Merge "Add neutron server dependency for cisco plugin config"
This commit is contained in:
commit
26f1aed03e
@ -113,7 +113,7 @@ class neutron::plugins::cisco(
|
||||
path => '/etc/default/neutron-server',
|
||||
match => '^NEUTRON_PLUGIN_CONFIG=(.*)$',
|
||||
line => "NEUTRON_PLUGIN_CONFIG=${::neutron::params::cisco_config_file}",
|
||||
require => Package['neutron-plugin-cisco'],
|
||||
require => [ Package['neutron-server'], Package['neutron-plugin-cisco'] ],
|
||||
notify => Service['neutron-server'],
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,14 @@ describe 'neutron::plugins::cisco' do
|
||||
context 'on Debian platforms' do
|
||||
let :facts do
|
||||
{ :osfamily => 'Debian' }
|
||||
end
|
||||
it_configures 'default cisco plugin'
|
||||
end
|
||||
|
||||
it_configures 'default cisco plugin'
|
||||
it 'configures /etc/default/neutron-server' do
|
||||
should contain_file_line('/etc/default/neutron-server:NEUTRON_PLUGIN_CONFIG').with(
|
||||
:line => 'NEUTRON_PLUGIN_CONFIG=/etc/neutron/plugins/cisco/cisco_plugins.ini',
|
||||
:require => ['Package[neutron-server]', 'Package[neutron-plugin-cisco]']
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user