diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp index 601af55..0b3cbfc 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp @@ -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, }