neoloc/lxd_hosts (#223)

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/223
This commit was merged in pull request #223.
This commit is contained in:
2025-03-29 19:40:01 +11:00
parent 771b981d91
commit adc0cf2c09
6 changed files with 54 additions and 1 deletions
+4 -1
View File
@@ -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'),
}