-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian.yaml
62 lines (51 loc) · 1.81 KB
/
debian.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{{- $arch := or .arch "amd64" -}}
{{- $suite := or .suite "stable" -}}
{{- $user := or .user "user" -}}
{{- $pass := or .pass "password" -}}
{{- $hostname := or .hostname "debian" -}}
{{- $image := or .image (printf "debian-%s-%s.tgz" $suite $arch) -}}
architecture: {{ $arch }}
actions:
- action: run
description: fix DNS inside container
script: /bin/ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
- action: debootstrap
description: create Debian filesystem
suite: {{ $suite }}
components: [ main, contrib, non-free ]
mirror: http://cdn.debian.net/debian/
- action: run
description: preseed variables
chroot: true
script: scripts/preseed.sh
- action: apt
recommends: true
description: add kernel and firmware
packages: [
linux-image-amd64, firmware-linux, atmel-firmware, bluez-firmware, firmware-atheros, firmware-bnx2,
firmware-brcm80211, firmware-intelwimax, firmware-iwlwifi, firmware-libertas, firmware-realtek,
firmware-ti-connectivity, firmware-zd1211
]
- action: apt
recommends: true
description: add Xfce desktop with Italian locale
packages: [ sudo, task-laptop, task-xfce-desktop, task-italian, task-italian-desktop, network-manager-openvpn ]
- action: run
description: cleanup packages after install
chroot: true
command: apt clean
- action: run
description: set hostname
chroot: true
command: echo {{ $hostname }} > /etc/hostname
- action: run
description: set hosts file
chroot: true
script: scripts/setup-hosts.sh {{ $hostname }}
- action: run
description: add a new user (will be in sudoers)
chroot: true
script: scripts/setup-user.sh {{ $user }} "{{ $pass }}"
- action: pack
file: {{ $image }}
compression: gz