Compare commits
No commits in common. "bd055b1ac82ca6d4a2f4cdb5b419287f4a05076b" and "c93846d03b55502cfb44e1337ad36cb6f1a7422e" have entirely different histories.
bd055b1ac8
...
c93846d03b
|
@ -20,38 +20,24 @@ class cdn::l4lb(
|
||||||
package {'bird2': ensure => installed }
|
package {'bird2': ensure => installed }
|
||||||
|
|
||||||
file { '/opt/sunet-cdn':
|
file { '/opt/sunet-cdn':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
}
|
}
|
||||||
|
|
||||||
$sysctl_file = '/etc/sysctl.d/99-cdn-l4lb.conf'
|
|
||||||
file { $sysctl_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
content => template('cdn/l4lb/sysctl.erb'),
|
|
||||||
}
|
|
||||||
# Load the sysctl file if it has changed
|
|
||||||
exec { "sysctl -p ${sysctl_file}":
|
|
||||||
subscribe => File[$sysctl_file],
|
|
||||||
refreshonly => true,
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/opt/sunet-cdn/l4lb':
|
file { '/opt/sunet-cdn/l4lb':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/opt/sunet-cdn/l4lb/conf':
|
file { '/opt/sunet-cdn/l4lb/conf':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/opt/sunet-cdn/l4lb/conf/netns.json':
|
file { '/opt/sunet-cdn/l4lb/conf/netns.json':
|
||||||
|
@ -79,10 +65,10 @@ class cdn::l4lb(
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/systemd/system/bird.service.d':
|
file { '/etc/systemd/system/bird.service.d':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/systemd/system/bird.service.d/override.conf':
|
file { '/etc/systemd/system/bird.service.d/override.conf':
|
||||||
|
@ -91,7 +77,7 @@ class cdn::l4lb(
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cdn/l4lb/bird-override.conf.erb'),
|
content => template('cdn/l4lb/bird-override.conf.erb'),
|
||||||
notify => [Class['sunet::systemd_reload']]
|
notify => [Class['sunet::systemd_reload']]
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/bird/bird.conf':
|
file { '/etc/bird/bird.conf':
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Allow non-SYN packets to be accepted for a IPVS service.
|
|
||||||
# Needed if another l4lb has been taken down and routers are now sending us
|
|
||||||
# packets for existing connections that was previously handled by the other
|
|
||||||
# node.
|
|
||||||
net.ipv4.vs.sloppy_tcp=1
|
|
Loading…
Reference in a new issue