base: template://ubuntu-22.04
mountTypesUnsupported: ["9p"]
mounts:
- location: "~"
writable: true
- location: "/tmp/lima test dir with spaces"
writable: true
param:
ANSIBLE: ansible
BOOT: boot
DEPENDENCY: dependency
PROBE: probe
SYSTEM: system
USER: user
YQ: yq
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"
- mode: data
path: /etc/sysctl.d/99-inotify.conf
content: |
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 512
- mode: yq
path: "/tmp/param-{{.Param.YQ}}.json"
expression: .YQ = "{{.Param.YQ}}"
user: "{{.User}}"
probes:
- mode: readiness
script: |
#!/bin/sh
touch /tmp/param-$PARAM_PROBE
additionalDisks:
- "data"
user:
name: john
comment: John Doe
home: "/home/{{.User}}-{{.User}}"
uid: 4711
shell: /usr/bin/bash