-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (32 loc) · 1.53 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Set bluetooth dongle product and vendor ID.
BLUETOOTH_PRODUCT_ID = ENV.fetch("BLUETOOTH_PRODUCT_ID", "0x0001")
BLUETOOTH_VENDOR_ID = ENV.fetch("BLUETOOTH_VENDOR_ID", "0x0A12")
# Vagrantfile API/syntax version. Don"t touch unless you know what you"re doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/wily32"
# Disable the new default behavior introduced in Vagrant 1.7, to
# ensure that all Vagrant machines will use the same SSH key pair.
# See https://github.com/mitchellh/vagrant/issues/5005
config.ssh.insert_key = false
# Forward my ssh agent for easy GitHub development
config.ssh.forward_agent = true
# Load some provisioning scripts
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
# Configure usb autoconnect for bluetooth dongle
# https://spin.atomicobject.com/2014/03/21/smartcard-virtualbox-vm/
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["usbfilter", "add", "0", "--target", :id, "--name", "bluetooth", "--vendorid", BLUETOOTH_VENDOR_ID, "--productid", BLUETOOTH_PRODUCT_ID]
vb.memory = 1024
end
end