# 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'), } }