summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-27 07:01:50 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-27 07:01:50 +0200
commit8d8c320b74dd6aadf17614fe4dcdae8b6470b3ea (patch)
tree6a6d9b2ea1176286e35b7cfb9b8301c976bedb00
parentAdd "mode" to networkd_instance. (diff)
downloadnetworking-8d8c320b74dd6aadf17614fe4dcdae8b6470b3ea.tar.gz
networking-8d8c320b74dd6aadf17614fe4dcdae8b6470b3ea.tar.xz
Clarify choice of reload method.
-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,
}
}
-