Prefix files with numbers as recommended by docs
See "systemd.netdev" docs.
This commit is contained in:
parent
382214ef2b
commit
44c73b78ae
|
@ -39,24 +39,24 @@ class cdn::cache(
|
||||||
content => template('cdn/cache/varnish-slash-seccomp.json.erb'),
|
content => template('cdn/cache/varnish-slash-seccomp.json.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/systemd/network/cdn-dummy.netdev':
|
file { '/etc/systemd/network/10-cdn-dummy.netdev':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cdn/cache/cdn-dummy.netdev.erb'),
|
content => template('cdn/cache/10-cdn-dummy.netdev.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/systemd/network/cdn-dummy.network':
|
file { '/etc/systemd/network/10-cdn-dummy.network':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
content => template('cdn/cache/cdn-dummy.network.erb'),
|
content => template('cdn/cache/10-cdn-dummy.network.erb'),
|
||||||
}
|
}
|
||||||
# Reload the network config if it has changed
|
# Reload the network config if it has changed
|
||||||
exec { 'networkctl reload':
|
exec { 'networkctl reload':
|
||||||
subscribe => File['/etc/systemd/network/cdn-dummy.network'],
|
subscribe => File['/etc/systemd/network/10-cdn-dummy.network'],
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue