From fbbab13f4225587dda30e8a998402bfe507b2372 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 29 Mar 2025 19:29:30 +1100 Subject: [PATCH] feat: restart networkmanager on el9 - update networking module to restart: NetworkManager on el9 network on el8 --- modules/networking/manifests/init.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/networking/manifests/init.pp b/modules/networking/manifests/init.pp index ae3970a..d2076ca 100644 --- a/modules/networking/manifests/init.pp +++ b/modules/networking/manifests/init.pp @@ -29,7 +29,10 @@ class networking ( # determine which networking service to restart $restart_command = $facts['os']['family'] ? { - 'RedHat' => '/usr/bin/systemctl restart network', + 'RedHat' => $facts['os']['release']['major'] ? { + '8' => '/usr/bin/systemctl restart network', + '9' => '/usr/bin/systemctl restart NetworkManager', + }, 'Debian' => '/usr/bin/systemctl restart networking', default => fail('Unsupported OS in networking-restart-command'), }