-
Notifications
You must be signed in to change notification settings - Fork 629
/
Copy pathtest-misc.yaml
66 lines (60 loc) · 1.94 KB
/
test-misc.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
63
64
65
66
# The test template for testing misc configurations:
# - disk
# - snapshots
# - (More to come)
#
# This template requires Lima v1.0.0-alpha.0 or later.
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:c777670007cc5f132417b9e0bc01367ccfc2a989951ffa225bb1952917c3aa81"
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:9620f479bd5a6cbf1e805654d41b27f4fc56ef20f916c8331558241734de81ae"
# Fallback to the latest release image.
# Hint: run `limactl prune` to invalidate the cache
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/releases/24.04/release/ubuntu-24.04-server-cloudimg-arm64.img"
arch: "aarch64"
# 9p is not compatible with `limactl snapshot`
mountTypesUnsupported: ["9p"]
mounts:
- location: "~"
writable: true
- location: "/tmp/lima test dir with spaces"
writable: true
- location: "/tmp/lima"
writable: true
param:
BOOT: boot
DEPENDENCY: dependency
PROBE: probe
SYSTEM: system
USER: user
provision:
- mode: ansible
playbook: ./hack/ansible-test.yaml
- mode: boot
script: "touch /tmp/param-$PARAM_BOOT"
- mode: dependency
script: "touch /tmp/param-$PARAM_DEPENDENCY"
- mode: system
script: "touch /tmp/param-$PARAM_SYSTEM"
- mode: user
script: "touch /tmp/param-$PARAM_USER"
probes:
- mode: readiness
script: |
#!/bin/sh
touch /tmp/param-$PARAM_PROBE
# in order to use this example, you must first create the disk "data". run:
# $ limactl disk create data --size 10G
additionalDisks:
- "data"
user:
name: john
comment: John Doe
home: "/home/{{.User}}-{{.User}}"
uid: 4711