-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnspawn.pkr.hcl
More file actions
42 lines (33 loc) · 790 Bytes
/
nspawn.pkr.hcl
File metadata and controls
42 lines (33 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
source "nspawn" "base" {
variant = "minbase"
}
build {
sources = ["source.nspawn.base"]
post-processors {
post-processor "shell-local" {
command = "tar --zstd -C /var/lib/machines/base -cf base.tar.zst ."
}
post-processor "artifice" {
files = ["base.tar.zst"]
}
}
}
source "nspawn" "test-clone" {
clone = "base"
}
build {
sources = ["source.nspawn.test-clone"]
provisioner "apt" {
packages = ["less", "vim-tiny"]
}
}
source "nspawn" "test-import" {
import = "base.tar.zst"
}
build {
sources = ["source.nspawn.test-import"]
provisioner "apt" {
sources = ["deb http://security.debian.org/debian-security buster/updates main contrib"]
keys = ["/etc/apt/trusted.gpg.d/debian-archive-buster-security-automatic.gpg"]
}
}