Combine networkctl reload command
This commit is contained in:
parent
d289ffa656
commit
ca7fbbe945
|
@ -54,11 +54,6 @@ class cdn::cache(
|
|||
mode => '0644',
|
||||
content => template('cdn/cache/10-cdn-dummy.network.erb'),
|
||||
}
|
||||
# Reload the network config if it has changed
|
||||
exec { 'networkctl reload':
|
||||
subscribe => File['/etc/systemd/network/10-cdn-dummy.network'],
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
file { '/etc/systemd/network/10-cdn-ipip.netdev':
|
||||
ensure => file,
|
||||
|
@ -75,9 +70,10 @@ class cdn::cache(
|
|||
mode => '0644',
|
||||
content => template('cdn/cache/10-cdn-ipip.network.erb'),
|
||||
}
|
||||
|
||||
# Reload the network config if it has changed
|
||||
exec { 'networkctl reload':
|
||||
subscribe => File['/etc/systemd/network/10-cdn-ipip.network'],
|
||||
subscribe => File['/etc/systemd/network/10-cdn-dummy.network'], File['/etc/systemd/network/10-cdn-ipip.network']],
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue