From 1e8cad6ea07e793ebe60c10713e628d2bd41e2a0 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Fri, 11 Oct 2024 18:45:54 +0200 Subject: [PATCH] Add dummy0 interface The netplan version we have is too old to do this so handle it manually. --- global/overlay/etc/puppet/modules/cdn/manifests/cache.pp | 8 ++++++++ .../modules/cdn/templates/cache/cdn-dummy.netdev.erb | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp index 3103944..6360f78 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp @@ -39,6 +39,14 @@ class cdn::cache( content => template('cdn/cache/varnish-slash-seccomp.json.erb'), } + file { '/etc/systemd/network/cdn-dummy.netdev': + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + content => template('cdn/cache/cdn-dummy.netdev.erb'), + } + $sysctl_file = '/etc/sysctl.d/99-cdn-cache.conf' file { $sysctl_file: ensure => file, diff --git a/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb b/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb new file mode 100644 index 0000000..d6ae53a --- /dev/null +++ b/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.netdev.erb @@ -0,0 +1,3 @@ +[NetDev] +Name=dummy0 +Kind=dummy