README.md edited online with Bitbucket
[tm351-notebooks.git] / Vagrantfile
1 Vagrant.configure("2") do |config|
2
3 #config.vm.box = "puppetlabs/ubuntu-14.04-32-puppet"
4
5 config.vm.box = "tm351LTS-d2-user"
6 config.vm.box_url = "https://dl.dropboxusercontent.com/u/1156404/tm351LTS-d2-user.box"
7 #config.vm.box_url = "./tm351LTS-d2-user.box"
8
9
10 config.ssh.forward_x11 = true
11
12 #The ipython server is started in a specific directory
13 #...so make sure that directory exists
14 config.vm.provision :shell, :inline => <<-SH
15 mkdir -p /vagrant/notebooks
16 SH
17
18 config.vm.provision :puppet,
19 :options => "--modulepath=/vagrant/modules" do |puppet|
20 puppet.manifests_path = "."
21 puppet.manifest_file = "site.pp"
22 end
23
24
25 #RUNTIME PROVISIONING
26 config.vm.provision :shell, :inline => <<-SH
27 /usr/local/lib/node_modules/tty.js/bin/tty.js --port 3000 --daemonize
28 SH
29
30 config.vm.define :tm351lts do |tm351lts|
31 tm351lts.vm.hostname = "tm351lts"
32 tm351lts.vm.provider :virtualbox do |virtualbox|
33 virtualbox.name = "tm351LTS-d2-user"
34 #virtualbox.memory = 2048
35 #virtualbox.cpus = 1
36 # virtualbox.gui = true
37 end
38 #ipython notebook
39 tm351lts.vm.network :forwarded_port, guest: 8888, host: 8888, auto_correct: true
40 #openrefine
41 tm351lts.vm.network :forwarded_port, guest: 3334, host: 3334, auto_correct: true
42 #tty.js
43 tm351lts.vm.network :forwarded_port, guest: 3000, host: 3000, auto_correct: true
44 end
45
46 #########
47 end