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'
|
$gre_module_name = 'gre'
|
||||||
}
|
}
|
||||||
|
|
||||||
kmod::generic {'install_gre':
|
kmod::install { $gre_module_name: }
|
||||||
type => 'install',
|
|
||||||
module => $gre_module_name,
|
|
||||||
file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'neutron':
|
class { 'neutron':
|
||||||
allow_overlapping_ips => true,
|
allow_overlapping_ips => true,
|
||||||
|
@ -206,6 +206,14 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
)
|
)
|
||||||
end
|
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
|
it 'configure spice console' do
|
||||||
should contain_class('nova::compute::spice').with(
|
should contain_class('nova::compute::spice').with(
|
||||||
:server_listen => '0.0.0.0',
|
:server_listen => '0.0.0.0',
|
||||||
|
@ -78,11 +78,7 @@ describe 'cloud::network::controller' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron server' do
|
it 'configure neutron server' do
|
||||||
|
@ -73,11 +73,7 @@ describe 'cloud::network::dhcp' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron dhcp' do
|
it 'configure neutron dhcp' do
|
||||||
|
@ -73,11 +73,7 @@ describe 'cloud::network::l3' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron l3' do
|
it 'configure neutron l3' do
|
||||||
|
@ -73,11 +73,7 @@ describe 'cloud::network::lbaas' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron lbaas' do
|
it 'configure neutron lbaas' do
|
||||||
|
@ -80,11 +80,7 @@ describe 'cloud::network::metadata' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron metadata' do
|
it 'configure neutron metadata' do
|
||||||
|
@ -68,11 +68,7 @@ describe 'cloud::network::vpn' do
|
|||||||
:network_vlan_ranges => ['physnet1:1000:2999'],
|
:network_vlan_ranges => ['physnet1:1000:2999'],
|
||||||
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
:enable_security_group => 'neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver'
|
||||||
)
|
)
|
||||||
should contain_kmod__generic('install_gre').with(
|
should contain_kmod__install(platform_params[:gre_module_name])
|
||||||
:type => 'install',
|
|
||||||
:module => platform_params[:gre_module_name],
|
|
||||||
:file => '/etc/modprobe.d/neutron.conf'
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure neutron vpnaas' do
|
it 'configure neutron vpnaas' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user