diff options
Diffstat (limited to 'doc/examples/example.yaml')
-rw-r--r-- | doc/examples/example.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/examples/example.yaml b/doc/examples/example.yaml new file mode 100644 index 0000000..c0b6f55 --- /dev/null +++ b/doc/examples/example.yaml @@ -0,0 +1,34 @@ +{{- $architecture := or .architecture "arm64" -}} +{{- $suite := or .suite "stretch" -}} +{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }} + +architecture: {{ $architecture }} + +actions: + - action: debootstrap + suite: "buster" + components: + - main + - contrib + - non-free + mirror: https://deb.debian.org/debian + variant: minbase + + - action: apt + description: Install some packages + packages: [ sudo, openssh-server, adduser, systemd-sysv, firmware-linux ] + + - action: run + chroot: true + script: setup-user.sh + + - action: overlay + source: overlays/sudo + + - action: run + chroot: true + command: echo debian > /etc/hostname + + - action: pack + file: {{ $image }} + compression: gz |