summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/networkd.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/networkd.pp b/manifests/networkd.pp
index 7c06b58..e7db086 100644
--- a/manifests/networkd.pp
+++ b/manifests/networkd.pp
@@ -11,7 +11,13 @@ class networking::networkd (
}
}
- # Why this instead of `networkctl reload`?
+ # Force a full restort of systemd networkd to reload all configuration.
+ # The alternative is to first run `networkctl reload` which reloads
+ # network files, followed by a `networkctl reconfigure <iface>`.
+ #
+ # When this was writen, I didn't realize that a reload +
+ # reconfigure was required. Note that old configurations might
+ # lingerif done that way.
if $notify_ {
exec { 'reload networkd':
command => 'systemctl reload-or-restart systemd-networkd',
@@ -25,4 +31,3 @@ class networking::networkd (
enable => true,
}
}
-