self-hosting/Vagrantfile

16 lines
432 B
Text
Raw Normal View History

2023-09-02 21:55:22 +02:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "lime2" do |lime2|
lime2.vm.box = "debian/bookworm64"
lime2.vm.hostname = "lime2"
lime2.vm.provision "shell" do |shell|
ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip
shell.inline = <<-SHELL
echo #{ssh_pub_key} >> /home/vagrant/.ssh/authorized_keys
SHELL
end
end
end