build { sources = [ "source.hcloud.main" ] provisioner "file" { direction = "upload" source = "./rootfs" destination = "/tmp" } provisioner "shell" { environment_vars = [ "DPKG_FORCE=confold", "DEBIAN_FRONTEND=noninteractive" ] inline_shebang = "/bin/sh -eux" inline = [ < /etc/apt/sources.list.d/wireguard.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1B39B6EF6DDB96564797591AE33835F504A1A25 apt-get update && apt-get install -yo DPkg::options::=--force-confold wireguard EOF , < /etc/resolv.conf systemctl enable --now unbound.service unbound-resolvconf.service EOF , <