Add SSH agent forwarding option
This commit is contained in:
parent
fb827f3bee
commit
9075aab593
7
Vagrantfile
vendored
7
Vagrantfile
vendored
@ -1,8 +1,12 @@
|
|||||||
# -*- mode: ruby -*-
|
# -*- mode: ruby -*-
|
||||||
# vi: set ft=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 !PLAYBOOK
|
||||||
if File.exist?('.playbook')
|
if File.exist?('.playbook')
|
||||||
PLAYBOOK = IO.read('.playbook').split("\n")[0]
|
PLAYBOOK = IO.read('.playbook').split("\n")[0]
|
||||||
@ -19,6 +23,7 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.box = "debian/buster64"
|
config.vm.box = "debian/buster64"
|
||||||
config.vm.network "private_network", type: "dhcp"
|
config.vm.network "private_network", type: "dhcp"
|
||||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||||
|
config.ssh.forward_agent = SSH_FORWARD
|
||||||
|
|
||||||
# Machine Name
|
# Machine Name
|
||||||
config.vm.define :moxie do |moxie| #
|
config.vm.define :moxie do |moxie| #
|
||||||
|
Loading…
Reference in New Issue
Block a user