4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
7 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8 # Every Vagrant virtual environment requires a box to build off of.
9 config.vm.box = "hashicorp/precise64"
11 # Disable automatic box update checking. If you disable this, then
12 # boxes will only be checked for updates when the user runs
13 # `vagrant box outdated`. This is not recommended.
14 # config.vm.box_check_update = false
16 # Create a forwarded port mapping which allows access to a specific port
17 # within the machine from a port on the host machine. In the example below,
18 # accessing "localhost:8080" will access port 80 on the guest machine.
19 # config.vm.network "forwarded_port", guest: 80, host: 8080
21 # Create a private network, which allows host-only access to the machine
22 # using a specific IP.
23 # config.vm.network "private_network", ip: "192.168.33.10"
25 # Create a public network, which generally matched to bridged network.
26 # Bridged networks make the machine appear as another physical device on
28 # config.vm.network "public_network"
30 config.vm.provision :file, source: "~/.gitconfig", destination: ".gitconfig"
31 # maybe should have a separate key for Vagrant
32 config.vm.provision :file, source: "~/.ssh/id_rsa", destination: ".ssh/id_rsa"
33 config.vm.provision :file, source: "~/.ssh/id_rsa.pub", destination: ".ssh/id_rsa.pub"
34 config.vm.provision :file, source: "~/.ssh/known_hosts", destination: ".ssh/known_hosts"
35 config.vm.provision :file, source: "~/.ssh/config", destination: ".ssh/config"
37 # Simple script configuration
38 config.vm.provision :shell, path: "bootstrap.sh"
39 config.vm.provision :shell do |shell|
40 shell.path = "iotivity-setup.sh"
43 user = ENV['USERNAME']
45 shell.args = "#{user}"
46 shell.privileged = false