Merge pull request #423 from enovance/fix-modprobe

network: load GRE kernel module
This commit is contained in:
Sebastien Badia 2014-04-15 13:50:02 +02:00
commit a6c9bb29ee
8 changed files with 15 additions and 35 deletions

View File

@ -86,11 +86,7 @@ class cloud::network(
$gre_module_name = 'gre'
}
kmod::generic {'install_gre':
type => 'install',
module => $gre_module_name,
file => '/etc/modprobe.d/neutron.conf'
}
kmod::install { $gre_module_name: }
class { 'neutron':
allow_overlapping_ips => true,

View File

@ -206,6 +206,14 @@ describe 'cloud::compute::hypervisor' do
)
end
it 'should create neutron modprobe configuration file' do
should contain_file('/etc/modprobe.d/neutron.conf').with(
:owner => 'root',
:group => 'root',
:mode => '0644'
)
end
it 'configure spice console' do
should contain_class('nova::compute::spice').with(
:server_listen => '0.0.0.0',

View File

@ -78,11 +78,7 @@ describe 'cloud::network::controller' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron server' do

View File

@ -73,11 +73,7 @@ describe 'cloud::network::dhcp' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron dhcp' do

View File

@ -73,11 +73,7 @@ describe 'cloud::network::l3' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron l3' do

View File

@ -73,11 +73,7 @@ describe 'cloud::network::lbaas' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron lbaas' do

View File

@ -80,11 +80,7 @@ describe 'cloud::network::metadata' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron metadata' do

View File

@ -68,11 +68,7 @@ describe 'cloud::network::vpn' do
:network_vlan_ranges => ['physnet1:1000:2999'],
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
)
should contain_kmod__generic('install_gre').with(
:type => 'install',
:module => platform_params[:gre_module_name],
:file => '/etc/modprobe.d/neutron.conf'
)
should contain_kmod__install(platform_params[:gre_module_name])
end
it 'configure neutron vpnaas' do