Skip to content

Instantly share code, notes, and snippets.

@afbjorklund
Last active June 3, 2024 13:42
Show Gist options
  • Save afbjorklund/c99634a2a34aa3315f7d7db0f54526f6 to your computer and use it in GitHub Desktop.
Save afbjorklund/c99634a2a34aa3315f7d7db0f54526f6 to your computer and use it in GitHub Desktop.
lima.yaml for kubernetes 10 year celebration (ubuntu 15.04)
# This template requires Lima v0.7.0 or later.
arch: "x86_64"
images:
- location: "http://cloud-images-archive.ubuntu.com/releases/vivid/release-20160203/ubuntu-15.04-server-cloudimg-amd64-disk1.img"
arch: "x86_64"
digest: "sha256:a348500d04de3352af3944e9dae99a08d60091221e1370941b93bd7a27971568"
firmware:
legacyBIOS: true
mounts: []
containerd:
system: false
user: false
provision:
- mode: boot
script: |
sed -i 's|http://archive.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/cloud/cloud.cfg
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/cloud/cloud.cfg
- mode: boot
script: |
printf '#!/bin/sh\nif [ "$2" = "enable" -a "$3" = "--now" ]; then /bin/systemctl $1 enable $4; /bin/systemctl $1 start $4; else /bin/systemctl "$@"; fi\n' >/usr/local/bin/systemctl
chmod 755 /usr/local/bin/systemctl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment