Skip to content

Commit c2782aa

Browse files
committed
Use template variables instead of LIMA_CIDATA_* bash variables
Signed-off-by: Jan Dubois <[email protected]>
1 parent bd7442e commit c2782aa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/docker-rootful.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# $ export DOCKER_HOST=$(limactl list docker-rootful --format 'unix://{{.Dir}}/sock/docker.sock')
77
# $ docker ...
88

9-
# This template requires Lima v0.8.0 or later
9+
# This template requires Lima v0.20.0 or later
1010
images:
1111
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
1212
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20231211/ubuntu-22.04-server-cloudimg-amd64.img"
@@ -49,7 +49,7 @@ provision:
4949
# Alternatively we could just add the user to the "docker" group, but that requires restarting the user session
5050
cat <<-EOF >/etc/systemd/system/docker.socket.d/override.conf
5151
[Socket]
52-
SocketUser=${LIMA_CIDATA_USER}
52+
SocketUser={{.User}}
5353
EOF
5454
fi
5555
export DEBIAN_FRONTEND=noninteractive

examples/experimental/vnc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A template to run ubuntu using display: vnc
2-
# This template requires Lima v0.15.0 or later.
2+
# This template requires Lima v0.20.0 or later.
33
images:
44
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
55
- location: "https://cloud-images.ubuntu.com/releases/23.10/release-20231011/ubuntu-23.10-server-cloudimg-amd64.img"
@@ -33,7 +33,7 @@ provision:
3333
export DEBIAN_FRONTEND=noninteractive
3434
# x-terminal-emulator x-session-manager x-window-manager
3535
apt-get install -y xorg xterm openbox hsetroot tint2 slim
36-
printf "auto_login yes\ndefault_user ${LIMA_CIDATA_USER}\n" >>/etc/slim.conf
36+
printf "auto_login yes\ndefault_user {{.User}}\n" >>/etc/slim.conf
3737
# configure some nice lima green, set up panel and apps
3838
printf "hsetroot -solid \"#32CD32\" &\ntint2 &\n" >>/etc/xdg/openbox/autostart
3939
sed -i 's/Clearlooks/Clearlooks-Olive/' /etc/xdg/openbox/rc.xml # go for green

examples/podman-rootful.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# $ export DOCKER_HOST=$(limactl list podman-rootful --format 'unix://{{.Dir}}/sock/podman.sock')
1111
# $ docker ...
1212

13-
# This template requires Lima v0.8.0 or later
13+
# This template requires Lima v0.20.0 or later
1414
images:
1515
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-39-1.5.x86_64.qcow2"
1616
arch: "x86_64"
@@ -36,12 +36,12 @@ provision:
3636
mkdir -p /etc/systemd/system/podman.socket.d
3737
cat <<-EOF >/etc/systemd/system/podman.socket.d/override.conf
3838
[Socket]
39-
SocketUser=${LIMA_CIDATA_USER}
39+
SocketUser={{.User}}
4040
EOF
4141
fi
4242
if [ ! -e /etc/tmpfiles.d/podman.conf ]; then
4343
mkdir -p /etc/tmpfiles.d
44-
echo "d /run/podman 0700 ${LIMA_CIDATA_USER} -" > /etc/tmpfiles.d/podman.conf
44+
echo "d /run/podman 0700 {{.User}} -" > /etc/tmpfiles.d/podman.conf
4545
fi
4646
dnf -y install podman
4747
- mode: system

0 commit comments

Comments
 (0)