class networking::networkd ( Boolean $notify_ = true, Boolean $manage_directory = true, String $root = '/', String $path = "${root}/etc/systemd/network", ) { if $manage_directory { file { $path: ensure => directory, purge => true, recurse => true, } } if $notify_ { exec { 'reload networkd': command => 'systemctl reload-or-restart systemd-networkd', path => ['/bin', '/usr/bin',], refreshonly => true, } } }