diff --git a/Vagrantfile b/Vagrantfile index e066b60..524bbfb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,12 +2,16 @@ # vi: set ft=ruby : Vagrant.configure("2") do |config| - config.vm.synced_folder "~/.password-store", "$HOME/.password-store" + config.vm.synced_folder "~/.password-store", "/home/vagrant/.password-store" + config.vm.define "archlinux" do |archlinux| archlinux.vm.box = "archlinux/archlinux" archlinux.vm.provision "shell", inline: <<-SHELL - pacman -Syu --noconfirm pass + pacman -S --noconfirm pass sudo + # gpg --export-secret-keys --armor > secret-keys.gpg + sudo -u vagrant gpg --import /vagrant/secret-keys.gpg + rm /vagrant/secret-keys.gpg SHELL end @@ -16,7 +20,10 @@ Vagrant.configure("2") do |config| debian.vm.provision "shell", inline: <<-SHELL apt-get update - apt-get install -y pass + apt-get install -y pass sudo + # gpg --export-secret-keys --armor > secret-keys.gpg + gpg --import /vagrant/secret-keys.gpg + rm /vagrant/secret-keys.gpg SHELL end end