linux_introduction/assets/full.yaml

35 lines
728 B
YAML
Raw Normal View History

2022-07-01 11:26:22 +02:00
{{- $architecture := or .architecture "amd64" -}}
{{- $suite := or .suite "bullseye" -}}
{{ $image := or .image (printf "debian_full-%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
- htop
- vim-nox
- tmux
- action: run
description: Set hostname
chroot: true
command: echo debian-{{ $suite }}-{{ $architecture }} > /etc/hostname
- action: pack
file: {{ $image }}
compression: gz