about summary refs log tree commit diff
path: root/vagrant/Vagrantfile.regular
blob: 79b33452f2c23e6b0327e9e8c41f8184234836bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"
  
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "16384"
    vb.cpus = 4
  end

  config.vm.provision "shell", inline: <<-SHELL
    # Update and install prerequisites
    apt-get update
    apt-get install -y curl gnupg2 apt-transport-https software-properties-common

    # Install Tailscale
    curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/bionic.gpg | apt-key add -
    curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/bionic.list | tee /etc/apt/sources.list.d/tailscale.list
    apt-get update
    apt-get install -y tailscale

    # Start and authenticate Tailscale
    systemctl enable --now tailscaled

    # Install k3sup
    curl -sLS https://get.k3sup.dev | sh
    mv k3sup /usr/local/bin/k3sup
  SHELL
end