Last active
April 12, 2024 14:25
-
-
Save michaelkosir/e61aeed7a548bfb092f1f03f39e3dcb7 to your computer and use it in GitHub Desktop.
My base configuration for Multipass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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