1 | # -*- mode: ruby -*- |
---|
2 | # vi: set ft=ruby : |
---|
3 | |
---|
4 | # All Vagrant configuration is done below. The "2" in Vagrant.configure |
---|
5 | # configures the configuration version (we support older styles for |
---|
6 | # backwards compatibility). Please don't change it unless you know what |
---|
7 | # you're doing. |
---|
8 | Vagrant.configure(2) do |config| |
---|
9 | # The most common configuration options are documented and commented below. |
---|
10 | # For a complete reference, please see the online documentation at |
---|
11 | # https://docs.vagrantup.com. |
---|
12 | |
---|
13 | # Every Vagrant development environment requires a box. You can search for |
---|
14 | # boxes at https://atlas.hashicorp.com/search. |
---|
15 | config.vm.box = "ubuntu1404" |
---|
16 | config.vm.box_url = "https://github.com/hnakamur/packer-templates/releases/download/v1.0.2/ubuntu-14-04-x64-virtualbox.box" |
---|
17 | #config.vm.box = "fedora19" |
---|
18 | #config.vm.box_url = "https://dl.dropboxusercontent.com/u/86066173/fedora-19.box" |
---|
19 | #config.vm.box = "fedora20" |
---|
20 | #config.vm.box_url = "https://dl.dropboxusercontent.com/u/15733306/vagrant/fedora-20-netinst-2014_01_05-minimal-puppet-guestadditions.box" |
---|
21 | |
---|
22 | # Disable automatic box update checking. If you disable this, then |
---|
23 | # boxes will only be checked for updates when the user runs |
---|
24 | # `vagrant box outdated`. This is not recommended. |
---|
25 | # config.vm.box_check_update = false |
---|
26 | |
---|
27 | # Create a forwarded port mapping which allows access to a specific port |
---|
28 | # within the machine from a port on the host machine. In the example below, |
---|
29 | # accessing "localhost:8080" will access port 80 on the guest machine. |
---|
30 | # config.vm.network "forwarded_port", guest: 80, host: 8080 |
---|
31 | |
---|
32 | # Create a private network, which allows host-only access to the machine |
---|
33 | # using a specific IP. |
---|
34 | # config.vm.network "private_network", ip: "192.168.33.10" |
---|
35 | |
---|
36 | # Create a public network, which generally matched to bridged network. |
---|
37 | # Bridged networks make the machine appear as another physical device on |
---|
38 | # your network. |
---|
39 | # config.vm.network "public_network" |
---|
40 | |
---|
41 | # Share an additional folder to the guest VM. The first argument is |
---|
42 | # the path on the host to the actual folder. The second argument is |
---|
43 | # the path on the guest to mount the folder. And the optional third |
---|
44 | # argument is a set of non-required options. |
---|
45 | # config.vm.synced_folder "../data", "/vagrant_data" |
---|
46 | |
---|
47 | # Provider-specific configuration so you can fine-tune various |
---|
48 | # backing providers for Vagrant. These expose provider-specific options. |
---|
49 | # Example for VirtualBox: |
---|
50 | # |
---|
51 | config.vm.provider "virtualbox" do |vb| |
---|
52 | # # Display the VirtualBox GUI when booting the machine |
---|
53 | # vb.gui = true |
---|
54 | # |
---|
55 | # # Customize the amount of memory on the VM: |
---|
56 | vb.memory = "1024" |
---|
57 | vb.cpus = "1" |
---|
58 | end |
---|
59 | # |
---|
60 | # View the documentation for the provider you are using for more |
---|
61 | # information on available options. |
---|
62 | |
---|
63 | # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies |
---|
64 | # such as FTP and Heroku are also available. See the documentation at |
---|
65 | # https://docs.vagrantup.com/v2/push/atlas.html for more information. |
---|
66 | # config.push.define "atlas" do |push| |
---|
67 | # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME" |
---|
68 | # end |
---|
69 | |
---|
70 | # Enable provisioning with a shell script. Additional provisioners such as |
---|
71 | # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the |
---|
72 | # documentation for more information about their specific syntax and use. |
---|
73 | # config.vm.provision "shell", inline <<-SHELL |
---|
74 | # sudo apt-get install apache2 |
---|
75 | # SHELL |
---|
76 | config.vm.provision :shell, :path => "Vagrantprovision.sh" |
---|
77 | end |
---|