Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lima-vm
GitHub Repository: lima-vm/lima
Path: blob/master/hack/test-templates/test-misc.yaml
1639 views
1
# The test template for testing misc configurations:
2
# - disk
3
# - snapshots
4
# - (More to come)
5
#
6
base: template://ubuntu-22.04
7
8
# 9p is not compatible with `limactl snapshot`
9
mountTypesUnsupported: ["9p"]
10
mounts:
11
- location: "~"
12
writable: true
13
- location: "/tmp/lima test dir with spaces"
14
writable: true
15
16
param:
17
ANSIBLE: ansible
18
BOOT: boot
19
DEPENDENCY: dependency
20
PROBE: probe
21
SYSTEM: system
22
USER: user
23
YQ: yq
24
25
provision:
26
- mode: ansible
27
playbook: ./hack/ansible-test.yaml
28
- mode: boot
29
script: "touch /tmp/param-$PARAM_BOOT"
30
- mode: dependency
31
script: "touch /tmp/param-$PARAM_DEPENDENCY"
32
- mode: system
33
script: "touch /tmp/param-$PARAM_SYSTEM"
34
- mode: user
35
script: "touch /tmp/param-$PARAM_USER"
36
- mode: data
37
path: /etc/sysctl.d/99-inotify.conf
38
content: |
39
fs.inotify.max_user_watches = 524288
40
fs.inotify.max_user_instances = 512
41
- mode: yq
42
path: "/tmp/param-{{.Param.YQ}}.json"
43
expression: .YQ = "{{.Param.YQ}}"
44
user: "{{.User}}"
45
46
probes:
47
- mode: readiness
48
script: |
49
#!/bin/sh
50
touch /tmp/param-$PARAM_PROBE
51
52
# in order to use this example, you must first create the disk "data". run:
53
# $ limactl disk create data --size 10G
54
additionalDisks:
55
- "data"
56
57
user:
58
name: john
59
comment: John Doe
60
home: "/home/{{.User}}-{{.User}}"
61
uid: 4711
62
# Ubuntu has identical /bin/bash and /usr/bin/bash
63
shell: /usr/bin/bash
64
65