Skip to content

Instantly share code, notes, and snippets.

@kkroesch
Created May 28, 2021 11:28
Show Gist options
  • Save kkroesch/4bc8e8156c06572da7c68b956a934dcf to your computer and use it in GitHub Desktop.
Save kkroesch/4bc8e8156c06572da7c68b956a934dcf to your computer and use it in GitHub Desktop.
Vagrantfile to have an Ansible and Docker toolkit at hand on Windows machines
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile to have an Ansible and Docker toolkit at hand on Windows machines.
Vagrant.configure("2") do |config|
# Jeff Geerling must have Ansible on his box ;-)
config.vm.box = "geerlingguy/debian10"
# If this does not work, remove the bridge part and Vagrant will interactively ask.
# Afterwards, the selection identifier can be replaced in the end:
config.vm.network "public_network", bridge: "Intel(R) Wi-Fi 6 AX201 160MHz"
# Possible customizations:
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
# Install some development tools and eventually Docker. Get rid of the Nano editor.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apt-transport-https ca-certificate cur gnup lsb-release git neovim
apt-get remove -y nano
curl -s https://get.docker.com/ | sh
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment