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:
@@ -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,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
modprobe -b bridge >/dev/null 2>&1
|
||||
modprobe -b br_netfilter >/dev/null 2>&1
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user