linux_introduction/assets/nspawn/simple.yaml

32 lines
674 B
YAML
Raw Normal View History

2022-07-01 11:26:22 +02:00
{{- $architecture := or .architecture "arm64" -}}
{{- $suite := or .suite "bullseye" -}}
{{ $image := or .image (printf "debian-%s-%s.tgz" $suite $architecture) }}
architecture: {{ $architecture }}
actions:
- action: debootstrap
suite: {{ $suite }}
components:
- main
mirror: http://deb.debian.org/debian
variant: minbase
- action: apt
recommends: false
packages:
- adduser
- sudo
- systemd-container
- net-tools
- action: run
description: Set hostname
chroot: true
command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname
- action: pack
file: {{ $image }}
compression: gz