- migrate to systemd-networkd - setup dummy, bridge and static/ethernet interfaces - manage sshd.service droping to start ssh after networking is online - enable ip forewarding - add fastpool/data/incus dataset - enable ospf and frr - add loopback0 as ssh listenaddress - add loopback1/2 for ceph cluster/public traffic Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/245
23 lines
728 B
Puppet
23 lines
728 B
Puppet
# manage bridges and bridge slaves
|
|
define networking::bridge (
|
|
String $type,
|
|
Optional[Stdlib::IP::Address] $ipaddress,
|
|
Optional[Stdlib::IP::Address] $netmask = undef,
|
|
Optional[Stdlib::IP::Address] $gateway = undef,
|
|
Optional[Boolean] $nocarrier = undef,
|
|
Boolean $bridge = true,
|
|
Integer[100-9200] $mtu = 1500,
|
|
Optional[Boolean] $forwarding = false,
|
|
) {
|
|
include systemd
|
|
|
|
systemd::network { "${title}.netdev":
|
|
content => template('networking/bridge.netdev.erb'),
|
|
}
|
|
|
|
# Use shared template, it will detect bridge=true and skip Address/DNS/etc
|
|
systemd::network { "${title}.network":
|
|
content => template('networking/networkd-network.erb'),
|
|
}
|
|
}
|