# -*- mode: ruby -*-: # vi: set ft=ruby : Vagrant.configure("2") do |config| # to avoid error message: "Could not retrieve fact fqdn" config.vm.hostname = "box.example.com" # 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 = "precise32" # Set the number of CPUs to more than one only if you have VT-x support config.vm.provider "virtualbox" do |v| v.customize ["modifyvm", :id, "--cpus", 1, "--memory", 1500, "--ioapic", "on"] end # The url from where the 'config.vm.box' box will be fetched if it # doesn't already exist on the user's system. config.vm.box_url = "http://files.vagrantup.com/precise32.box" # Share an additional folder to the guest VM. The first argument is # an identifier, the second is the path on the guest to mount the # folder, and the third is the path on the host to the actual folder. # config.vm.share_folder "v-data", "/vagrant_data", "../data" # config.vm.share_folder "ghcjs-ghc-repo", "/tmp/ghcjs-ghc-repo", "/usr/src/ghcjs/ghc/.git" # config.vm.share_folder "ghcjs-libraries", "/tmp/ghcjs-libraries", "/usr/src/ghcjs/ghc" # config.vm.share_folder "archives", "/tmp/install-archives", "archives" # config.vm.share_folder "outputs", "/tmp/outputs", "outputs" # Enable provisioning with Puppet stand alone. Puppet manifests # are contained in a directory path relative to this Vagrantfile. # You will need to create the manifests directory and a manifest in # the file base.pp in the manifests_path directory. # # An example Puppet manifest to provision the message of the day: # # # group { "puppet": # # ensure => "present", # # } # # # # File { owner => 0, group => 0, mode => 0644 } # # # # file { '/etc/motd': # # content => "Welcome to your Vagrant-built virtual machine! # # Managed by Puppet.\n" # # } # config.vm.provision :puppet #config.vm.provision :shell, :path => "build/build-quick.sh" #config.vm.provision :shell, :path => "build/build-full.sh" config.vm.provision :shell, :path => "build/prebuilt.sh" end