Add comment to import gpg key
This commit is contained in:
parent
b5184dc4a0
commit
04bee1e3cc
1 changed files with 10 additions and 3 deletions
13
Vagrantfile
vendored
13
Vagrantfile
vendored
|
@ -2,12 +2,16 @@
|
||||||
# vi: set ft=ruby :
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
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|
|
config.vm.define "archlinux" do |archlinux|
|
||||||
archlinux.vm.box = "archlinux/archlinux"
|
archlinux.vm.box = "archlinux/archlinux"
|
||||||
|
|
||||||
archlinux.vm.provision "shell", inline: <<-SHELL
|
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
|
SHELL
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -16,7 +20,10 @@ Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
debian.vm.provision "shell", inline: <<-SHELL
|
debian.vm.provision "shell", inline: <<-SHELL
|
||||||
apt-get update
|
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
|
SHELL
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue