define nspawn::util::disable_networking ( String $template_name = $name, String $template_dir = $nspawn::template_dir, String $template_path = "${template_dir}/${template_name}", ) { # Manually masking instead of trying to disable/mask it through # systemd, since this is MUCH easier to do whith puppet. file { "${template_path}/etc/systemd/system/networking.service": ensure => link, target => '/dev/null', } }