about summary refs log tree commit diff
path: root/vagrant/Vagrantfile.regular
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-30 17:58:04 +0200
committermakefunstuff <[email protected]>2024-06-30 17:58:04 +0200
commit78a3a7b751b5042b775dfbf3376362ce9729e5bb (patch)
tree802515693d3039df5f3f84729b3ec4ee61eea3af /vagrant/Vagrantfile.regular
parentcbfab9c28fb56ba9c13a574b0e69c8adba5e61c8 (diff)
downloadk3s-lab-78a3a7b751b5042b775dfbf3376362ce9729e5bb.tar.gz
more todos
Diffstat (limited to 'vagrant/Vagrantfile.regular')
-rw-r--r--vagrant/Vagrantfile.regular27
1 files changed, 27 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile.regular b/vagrant/Vagrantfile.regular
new file mode 100644
index 0000000..79b3345
--- /dev/null
+++ b/vagrant/Vagrantfile.regular
@@ -0,0 +1,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