1 # -- Define: systemd::network
2 # Creates network config for systemd-networkd
3 define systemd::network (
4 Enum['file', 'absent'] $ensure = file,
5 Stdlib::Absolutepath $path = '/etc/systemd/network',
6 Optional[String] $content = undef,
7 Optional[String] $source = undef,
8 Optional[Stdlib::Absolutepath] $target = undef,
9 Boolean $restart_service = true,
14 if $restart_service and $systemd::manage_networkd {
15 $notify = Service['systemd-networkd']
20 file { "${path}/${name}":