neoloc/lxd_hosts (#223)
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/223
This commit is contained in:
parent
771b981d91
commit
adc0cf2c09
10
hieradata/nodes/prodnxsr0009.main.unkin.net.yaml
Normal file
10
hieradata/nodes/prodnxsr0009.main.unkin.net.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
networking::interfaces:
|
||||||
|
enp2s0:
|
||||||
|
ipaddress: 198.18.15.9
|
||||||
|
enp3s0:
|
||||||
|
ipaddress: 10.18.15.9
|
||||||
|
mtu: 9000
|
||||||
|
networking::routes:
|
||||||
|
default:
|
||||||
|
gateway: 198.18.15.254
|
||||||
10
hieradata/nodes/prodnxsr0010.main.unkin.net.yaml
Normal file
10
hieradata/nodes/prodnxsr0010.main.unkin.net.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
networking::interfaces:
|
||||||
|
enp2s0:
|
||||||
|
ipaddress: 198.18.15.10
|
||||||
|
enp3s0:
|
||||||
|
ipaddress: 10.18.15.10
|
||||||
|
mtu: 9000
|
||||||
|
networking::routes:
|
||||||
|
default:
|
||||||
|
gateway: 198.18.15.254
|
||||||
10
hieradata/nodes/prodnxsr0011.main.unkin.net.yaml
Normal file
10
hieradata/nodes/prodnxsr0011.main.unkin.net.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
networking::interfaces:
|
||||||
|
enp2s0:
|
||||||
|
ipaddress: 198.18.15.11
|
||||||
|
enp3s0:
|
||||||
|
ipaddress: 10.18.15.11
|
||||||
|
mtu: 9000
|
||||||
|
networking::routes:
|
||||||
|
default:
|
||||||
|
gateway: 198.18.15.254
|
||||||
10
hieradata/nodes/prodnxsr0012.main.unkin.net.yaml
Normal file
10
hieradata/nodes/prodnxsr0012.main.unkin.net.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
networking::interfaces:
|
||||||
|
enp2s0:
|
||||||
|
ipaddress: 198.18.15.12
|
||||||
|
enp3s0:
|
||||||
|
ipaddress: 10.18.15.12
|
||||||
|
mtu: 9000
|
||||||
|
networking::routes:
|
||||||
|
default:
|
||||||
|
gateway: 198.18.15.254
|
||||||
10
hieradata/nodes/prodnxsr0013.main.unkin.net.yaml
Normal file
10
hieradata/nodes/prodnxsr0013.main.unkin.net.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
networking::interfaces:
|
||||||
|
enp2s0:
|
||||||
|
ipaddress: 198.18.15.13
|
||||||
|
enp3s0:
|
||||||
|
ipaddress: 10.18.15.13
|
||||||
|
mtu: 9000
|
||||||
|
networking::routes:
|
||||||
|
default:
|
||||||
|
gateway: 198.18.15.254
|
||||||
@ -29,7 +29,10 @@ class networking (
|
|||||||
|
|
||||||
# determine which networking service to restart
|
# determine which networking service to restart
|
||||||
$restart_command = $facts['os']['family'] ? {
|
$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',
|
'Debian' => '/usr/bin/systemctl restart networking',
|
||||||
default => fail('Unsupported OS in networking-restart-command'),
|
default => fail('Unsupported OS in networking-restart-command'),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user