Load br_netfilter module on Fedora 22+

/proc/sys/net/bridge/* is now provided by br_netfilter module

Change-Id: Ib575bb234991f9d58c40c0472a2f2e99aab74cb3
This commit is contained in:
Lukas Bezdicka
2014-12-19 14:43:57 +01:00
parent 665d11a077
commit ac26b74862
2 changed files with 9 additions and 0 deletions

View File

@@ -2,6 +2,14 @@
# Loads bridge modules and sets appropriate sysctl.conf variables
class packstack::neutron::bridge {
if $::operatingsystem == 'Fedora' and (is_integer($::operatingsystemrelease) and $::operatingsystemrelease >= 22 or $::operatingsystemrelease == 'Rawhide') {
exec { 'load-br-netfilter':
path => ['/sbin', '/usr/sbin'],
command => 'modprobe -b br_netfilter',
logoutput => 'on_failure',
before => Exec['load-bridge'],
}
}
file { 'bridge-module-loader':
path => '/etc/sysconfig/modules/openstack-neutron.modules',
ensure => present,

View File

@@ -1,3 +1,4 @@
#!/bin/sh
modprobe -b bridge >/dev/null 2>&1
modprobe -b br_netfilter >/dev/null 2>&1
exit 0