Skip to content

Commit 9cc369e

Browse files
committed
Add openSUSE example config (using JeOS image for OpenStack).
Signed-off-by: Jan Dubois <[email protected]>
1 parent f187eb1 commit 9cc369e

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
timeout-minutes: 40
8282
strategy:
8383
matrix:
84-
example: [default.yaml, alpine.yaml, debian.yaml, fedora.yaml, archlinux.yaml]
84+
example: [default.yaml, alpine.yaml, debian.yaml, fedora.yaml, archlinux.yaml, opensuse.yaml]
8585
steps:
8686
- uses: actions/setup-go@v2
8787
with:

examples/opensuse.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
images:
2+
- location: https://download.opensuse.org/distribution/leap/15.3/appliances/openSUSE-Leap-15.3-JeOS.x86_64-15.3-OpenStack-Cloud-Build9.108.qcow2
3+
arch: "x86_64"
4+
# No aarch64 OpenStack build found :(
5+
mounts:
6+
- location: "~"
7+
writable: false
8+
- location: "/tmp/lima"
9+
writable: true
10+
ssh:
11+
# localPort is changed from 60022 to avoid conflicting with the default.
12+
# (TODO: assign localPort automatically)
13+
localPort: 60044

pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ elif command -v pacman >/dev/null 2>&1; then
5757
fi
5858
fi
5959
# other dependencies are preinstalled on Arch Linux (https://linuximages.de/openstack/arch/)
60+
elif command -v zypper >/dev/null 2>&1; then
61+
if [ "${LIMA_CIDATA_MOUNTS}" -gt 0 ]; then
62+
if ! command -v sshfs >/dev/null 2>&1; then
63+
zypper install -y sshfs
64+
fi
65+
fi
66+
if [ "${LIMA_CIDATA_CONTAINERD_SYSTEM}" = 1 ] || [ "${LIMA_CIDATA_CONTAINERD_USER}" = 1 ]; then
67+
if [ ! -e /usr/sbin/iptables ]; then
68+
zypper install -y iptables
69+
fi
70+
fi
71+
if [ "${LIMA_CIDATA_CONTAINERD_USER}" = 1 ]; then
72+
if ! command -v mount.fuse3 >/dev/null 2>&1; then
73+
zypper install -y fuse3
74+
fi
75+
fi
6076
elif command -v apk >/dev/null 2>&1; then
6177
if [ "${LIMA_CIDATA_MOUNTS}" -gt 0 ]; then
6278
if ! command -v sshfs >/dev/null 2>&1; then

pkg/cidata/cidata.TEMPLATE.d/boot/40-install-containerd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fi
2626

2727
if [ "${LIMA_CIDATA_CONTAINERD_USER}" = 1 ]; then
2828
modprobe tap || true
29+
modprobe ip_tables || true
2930
if [ ! -e "/home/${LIMA_CIDATA_USER}.linux/.config/containerd/config.toml" ]; then
3031
mkdir -p "/home/${LIMA_CIDATA_USER}.linux/.config/containerd"
3132
cat >"/home/${LIMA_CIDATA_USER}.linux/.config/containerd/config.toml" <<EOF

0 commit comments

Comments
 (0)