summaryrefslogtreecommitdiff
path: root/manifests/setup.pp
blob: 01503c87126096d2a3457be02b70e7ea3f451652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class nspawn::setup {

  # TODO find better file to use for containers

  file { '/usr/lib/systemd/resolv.conf':
    ensure => file,
    content => @(EOF)
      # File /usr/lib/systemd/resolv.conf managed by puppet
      # Local changes will be overwritten
      nameserver 10.0.0.40
      search adrift.space
      | EOF
  }

  service { 'machines.target':
    enable => true,
  }

  Nspawn::Template <| |> -> Nspawn::Machine <| |>

}