From 22ae1c226cef7b12865dc0fbae633625434db1d9 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 24 Sep 2017 19:41:56 +0200 Subject: [PATCH] And reload networking when we add new addresses --- modules/salsa/manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/salsa/manifests/init.pp b/modules/salsa/manifests/init.pp index 8633d7ba0..5b4934c80 100644 --- a/modules/salsa/manifests/init.pp +++ b/modules/salsa/manifests/init.pp @@ -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, } } -- 2.20.1