From 4a2b55224864c97de43dacbfaa4316fa68ece6e2 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Tue, 12 Nov 2019 23:37:56 +0100 Subject: [PATCH] Disabling RA needs to happen late in if-pre-up, so that the interface actually exists Rename our script to run later than the "vlan" one. --- modules/debian_org/manifests/init.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/debian_org/manifests/init.pp b/modules/debian_org/manifests/init.pp index c03f58e1b..3cb5da6ab 100644 --- a/modules/debian_org/manifests/init.pp +++ b/modules/debian_org/manifests/init.pp @@ -340,10 +340,15 @@ class debian_org { } # our ipv6 addresses and routes are statically configured. - file { '/etc/network/if-pre-up.d/no_accept_ra': + # needs to be late so it runs after other scripts like vlan which actually + # create the interface + file { '/etc/network/if-pre-up.d/zz_no_accept_ra': source => 'puppet:///modules/debian_org/ifupdown-pre-up-accept-ra', mode => '0555', } + file { '/etc/network/if-pre-up.d/no_accept_ra': + ensure => absent, + } base::sysctl { 'dsa-accept-ra-default': ensure => absent, } -- 2.20.1