-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenafs-appliance.vmdb
85 lines (79 loc) · 1.84 KB
/
openafs-appliance.vmdb
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# Configuration file to build an OpenAFS appliance image with vmdb2
#
# SPDX-FileCopyrightText: 2023 Carnegie Mellon University
# SPDX-License-Identifier: GPL-2.0-only
#
steps:
- mkimg: "{{ output }}"
size: 4G
- mklabel: msdos
device: "{{ output }}"
- mkpart: primary
device: "{{ output }}"
start: 0%
end: 100%
tag: rootfs
- kpartx: "{{ output }}"
- mkfs: ext2
partition: rootfs
# mount root filesystem and unpack cached image
- mount: rootfs
- unpack-rootfs: rootfs
# install Debian-stable (bookworm) + kerberos5/openafs/samba
- debootstrap: bookworm
mirror: http://deb.debian.org/debian
target: rootfs
unless: rootfs_unpacked
- virtual-filesystems: rootfs
- apt: install
packages:
- avahi-utils
- chrony
- grub-pc
- krb5-config
- krb5-user
- linux-image-amd64
- parted
# openafs
- linux-headers-amd64
- openafs-client
- openafs-modules-dkms
- openafs-krb5
# samba
- logrotate
- samba
- samba-vfs-modules
# webauth
- caddy
- gunicorn
- python3-flask
# convenience/debug tools
- ed
- lsof
- net-tools
recommends: false
tag: rootfs
unless: rootfs_unpacked
# cache image state before customizations
- cache-rootfs: rootfs
unless: rootfs_unpacked
- fstab: rootfs
# generic configuration and fixups
- ansible: rootfs
playbook: openafs-appliance.yml
tags: config
extra_vars:
debug_image: true # allow passwordless root login
kerberos:
realm: ANDREW.CMU.EDU
openafs:
cell: andrew.cmu.edu
coda:
enabled: false
realm: coda.cs.cmu.edu
samba_rebuild:
root: "http://coda.cs.cmu.edu/~jaharkes/samba-rebuild"
- resize-rootfs: rootfs
- grub: bios
tag: rootfs