Skip to content

Instantly share code, notes, and snippets.

@michaelkosir
Last active April 12, 2024 14:25
Show Gist options
  • Save michaelkosir/e61aeed7a548bfb092f1f03f39e3dcb7 to your computer and use it in GitHub Desktop.
Save michaelkosir/e61aeed7a548bfb092f1f03f39e3dcb7 to your computer and use it in GitHub Desktop.
My base configuration for Multipass
# cloud-config
# Get PGP fingerprint
# export URL="https://apt.releases.hashicorp.com/gpg"
# curl -fs $URL | gpg --with-colons --with-fingerprint --quiet | grep -oE "[0-9A-F]{40}"
package_update: true
package_upgrade: true
apt:
sources:
hashicorp:
source: "deb https://apt.releases.hashicorp.com $RELEASE main"
keyid: 798AEC654E5C15428C8E42EEAA16FCBCA621E701
docker:
source: "deb https://download.docker.com/linux/ubuntu $RELEASE stable"
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
packages:
- jq
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
- vault
- terraform
- packer
runcmd:
# docker
- usermod -aG docker ubuntu
# disable swap
- sysctl vm.swappiness=0
- echo "vm.swappiness = 0" | tee -a /etc/sysctl.conf
- apt-get autoremove -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment