github.com/karalabe/go-ethereum@v0.8.5/tests/files/ansible/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
     5  VAGRANTFILE_API_VERSION ||= "2"
     6  
     7  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
     8    # All Vagrant configuration is done here. The most common configuration
     9    # options are documented and commented below. For a complete reference,
    10    # please see the online documentation at vagrantup.com.
    11  
    12    # Every Vagrant virtual environment requires a box to build off of.
    13    config.vm.box = "ubuntu/trusty64"
    14    config.vm.define "random-test"
    15  
    16    # Disable automatic box update checking. If you disable this, then
    17    # boxes will only be checked for updates when the user runs
    18    # `vagrant box outdated`. This is not recommended.
    19    # config.vm.box_check_update = false
    20  
    21    # Create a forwarded port mapping which allows access to a specific port
    22    # within the machine from a port on the host machine. In the example below,
    23    # accessing "localhost:8080" will access port 80 on the guest machine.
    24    # config.vm.network "forwarded_port", guest: 80, host: 8080
    25  
    26    # Create a private network, which allows host-only access to the machine
    27    # using a specific IP.
    28    # config.vm.network "private_network", ip: "192.168.33.10"
    29  
    30    # Create a public network, which generally matched to bridged network.
    31    # Bridged networks make the machine appear as another physical device on
    32    # your network.
    33    # config.vm.network "public_network"
    34  
    35    # If true, then any SSH connections made will enable agent forwarding.
    36    # Default value: false
    37    # config.ssh.forward_agent = true
    38  
    39    # Share an additional folder to the guest VM. The first argument is
    40    # the path on the host to the actual folder. The second argument is
    41    # the path on the guest to mount the folder. And the optional third
    42    # argument is a set of non-required options.
    43    # config.vm.synced_folder "../data", "/vagrant_data"
    44  
    45    # Provider-specific configuration so you can fine-tune various
    46    # backing providers for Vagrant. These expose provider-specific options.
    47    # Example for VirtualBox:
    48    #
    49    # config.vm.provider "virtualbox" do |vb|
    50    #   # Don't boot with headless mode
    51    #   vb.gui = true
    52    #
    53    #   # Use VBoxManage to customize the VM. For example to change memory:
    54    #   vb.customize ["modifyvm", :id, "--memory", "1024"]
    55    # end
    56    
    57  
    58    config.vm.provider "virtualbox" do |vb| 
    59    		# Ubuntu / Virtualbox workaround. 
    60    		# see http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
    61  	    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    62  
    63  		# cpp client needs a lot of RAM to build
    64          vb.customize ["modifyvm", :id, "--memory", "2048"]
    65    end
    66    
    67    #
    68    # View the documentation for the provider you're using for more
    69    # information on available options.
    70   
    71    
    72    # Ansible
    73    config.vm.provision "ansible" do |ansible|
    74      	ansible.playbook = "site.yml"
    75    end
    76  
    77  end
    78