Add network reload support
This commit is contained in:
parent
fe428a9e74
commit
a82798ead5
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ class cdn::cache(
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cdn/cache/cdn-dummy.network.erb'),
|
content => template('cdn/cache/cdn-dummy.network.erb'),
|
||||||
}
|
}
|
||||||
|
# Reload the network config if it has changed
|
||||||
|
exec { "networkctl reload":
|
||||||
|
subscribe => File[/etc/systemd/network/cdn-dummy.network],
|
||||||
|
refreshonly => true,
|
||||||
|
}
|
||||||
|
|
||||||
$sysctl_file = '/etc/sysctl.d/99-cdn-cache.conf'
|
$sysctl_file = '/etc/sysctl.d/99-cdn-cache.conf'
|
||||||
file { $sysctl_file:
|
file { $sysctl_file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue