Add Vagrantfile for lime2 testing
This commit is contained in:
parent
b07f891860
commit
4615558c72
2 changed files with 16 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
*.swp
|
*.swp
|
||||||
.talismanrc
|
.talismanrc
|
||||||
__pycache__
|
__pycache__
|
||||||
|
.vagrant/
|
||||||
|
|
15
Vagrantfile
vendored
Normal file
15
Vagrantfile
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# -*- 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
|
Loading…
Reference in a new issue