Prefix files with numbers as recommended by docs

See "systemd.netdev" docs.
This commit is contained in:
Patrik Lundin 2024-10-11 21:57:59 +02:00
parent 382214ef2b
commit 44c73b78ae
Signed by: patlu
GPG key ID: A0A812BA2249F294
2 changed files with 5 additions and 5 deletions

View file

@ -39,24 +39,24 @@ class cdn::cache(
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,
owner => 'root',
group => 'root',
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,
owner => 'root',
group => 'root',
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
exec { 'networkctl reload':
subscribe => File['/etc/systemd/network/cdn-dummy.network'],
subscribe => File['/etc/systemd/network/10-cdn-dummy.network'],
refreshonly => true,
}