From 9075aab59394c7774dd838b947bf8eb23e8586de Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Thu, 15 Apr 2021 02:43:24 -0400 Subject: [PATCH] Add SSH agent forwarding option --- Vagrantfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 1bb9dd4..71f97dc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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| #