Merge pull request #423 from enovance/fix-modprobe
network: load GRE kernel module
This commit is contained in:
commit
a6c9bb29ee
@ -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,
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user