summaryrefslogtreecommitdiff
path: root/manifests/util/disable_networking.pp
blob: 186d09620c0fd5ccf088a551aa88747387fa768b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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',
  }
}