Add dummy0 interface

The netplan version we have is too old to do this so handle it manually.
This commit is contained in:
Patrik Lundin 2024-10-11 18:45:54 +02:00
parent eb49f13c49
commit 1e8cad6ea0
Signed by: patlu
GPG key ID: A0A812BA2249F294
2 changed files with 11 additions and 0 deletions

View file

@ -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,

View file

@ -0,0 +1,3 @@
[NetDev]
Name=dummy0
Kind=dummy