From 44c73b78aedb07a9104b4d153eea0602bc86581a Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Fri, 11 Oct 2024 21:57:59 +0200 Subject: [PATCH] Prefix files with numbers as recommended by docs See "systemd.netdev" docs. --- .../overlay/etc/puppet/modules/cdn/manifests/cache.pp | 10 +++++----- .../{cdn-dummy.netdev.erb => 10-cdn-dummy.netdev.erb} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename global/overlay/etc/puppet/modules/cdn/templates/cache/{cdn-dummy.netdev.erb => 10-cdn-dummy.netdev.erb} (100%) diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp index b7a8b74..ec4ef29 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp @@ -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, } diff --git a/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb b/global/overlay/etc/puppet/modules/cdn/templates/cache/10-cdn-dummy.netdev.erb similarity index 100% rename from global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb rename to global/overlay/etc/puppet/modules/cdn/templates/cache/10-cdn-dummy.netdev.erb