Add SSH agent forwarding option

This commit is contained in:
Kris Lamoureux 2021-04-15 02:43:24 -04:00
parent fb827f3bee
commit 9075aab593
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

7
Vagrantfile vendored
View File

@ -1,8 +1,12 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
PLAYBOOK=ENV["PLAYBOOK"]
SSH_FORWARD=ENV["SSH_FORWARD"]
if !(SSH_FORWARD == "true")
SSH_FORWARD = false
end
PLAYBOOK=ENV["PLAYBOOK"]
if !PLAYBOOK
if File.exist?('.playbook')
PLAYBOOK = IO.read('.playbook').split("\n")[0]
@ -19,6 +23,7 @@ Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.ssh.forward_agent = SSH_FORWARD
# Machine Name
config.vm.define :moxie do |moxie| #