And reload networking when we add new addresses
authorPeter Palfrader <peter@palfrader.org>
Sun, 24 Sep 2017 17:41:56 +0000 (19:41 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 24 Sep 2017 17:41:56 +0000 (19:41 +0200)
modules/salsa/manifests/init.pp

index 8633d7b..5b4934c 100644 (file)
@@ -60,7 +60,7 @@ class salsa inherits salsa::params {
                target => "${salsa::home}/.ssh/authorized_keys",
        }
        # pages
-       file { "/etc/network/interfaces.d/pages_debian_net.conf":
+       file { "/etc/network/interfaces.d/pages.debian.net.conf":
                content  => @("EOF"),
                                iface eth0 inet static
                                    address 209.87.16.45/24
@@ -68,5 +68,9 @@ class salsa inherits salsa::params {
                                    address 2607:f8f0:614:1::1274:45/64
                                    preferred-lifetime 0
                                | EOF
+               notify => Exec['service networking reload'],
+       }
+       exec { 'service networking reload':
+               refreshonly => true,
        }
 }