Disabling RA needs to happen late in if-pre-up, so that the interface actually exists
authorJulien Cristau <jcristau@debian.org>
Tue, 12 Nov 2019 22:37:56 +0000 (23:37 +0100)
committerJulien Cristau <jcristau@debian.org>
Tue, 12 Nov 2019 22:37:56 +0000 (23:37 +0100)
Rename our script to run later than the "vlan" one.

modules/debian_org/manifests/init.pp

index c03f58e..3cb5da6 100644 (file)
@@ -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,
   }