Turn off accept_ra sysctl everywhere
authorJulien Cristau <jcristau@debian.org>
Wed, 2 Oct 2019 20:03:15 +0000 (22:03 +0200)
committerJulien Cristau <jcristau@debian.org>
Wed, 2 Oct 2019 20:03:15 +0000 (22:03 +0200)
manifests/site.pp
modules/debian_org/manifests/init.pp
modules/debian_org/manifests/radvd.pp [deleted file]

index e939261..ba5b9a1 100644 (file)
@@ -53,10 +53,6 @@ node default {
                include samhain
        }
 
-       if $::hostname in [geo3,wieck] {
-               include debian_org::radvd
-       }
-
        if $::spamd {
                munin::check { 'spamassassin': }
        }
index e169151..cdf1e62 100644 (file)
@@ -340,6 +340,16 @@ class debian_org {
                value => '1',
        }
 
+       # our ipv6 addresses and routes are statically configured.
+       base::sysctl { 'dsa-accept-ra-default':
+               key   => 'net.ipv6.conf.default.accept_ra',
+               value => 0,
+       }
+       base::sysctl { 'dsa-accept-ra-all':
+               key   => 'net.ipv6.conf.all.accept_ra',
+               value => 0,
+       }
+
        # Disable kpartx udev rules
        file { '/etc/udev/rules.d/60-kpartx.rules':
                ensure => $has_lib_udev_rules_d_60_kpartx_rules ? { true  => 'present', default => 'absent' },
diff --git a/modules/debian_org/manifests/radvd.pp b/modules/debian_org/manifests/radvd.pp
deleted file mode 100644 (file)
index d783b70..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-class debian_org::radvd {
-       base::sysctl { 'dsa-accept-ra-default':
-               key   => 'net.ipv6.conf.default.accept_ra',
-               value => 0,
-       }
-       base::sysctl { 'dsa-accept-ra-all':
-               key   => 'net.ipv6.conf.all.accept_ra',
-               value => 0,
-       }
-}