summaryrefslogtreecommitdiff
path: root/modules/nspawn/manifests/os/arch.pp
blob: e5fc210e2440ce8f3963e98e181ccbd047b71306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
define nspawn::os::arch (
  String $machine = $name,
) {

  ensure_packages(['arch-install-scripts'])

  $machine_path = "/var/lib/machines/${machine}"

  exec { "/usr/bin/pacstrap '${machine_path}' base puppet":
    creates => "${machine_path}/etc/os-release",
  }

  nspawn::util::enable_networkd { $machine: }
}