| 1 |
# -*- mode: ruby -*- |
| 2 |
# vi: set ft=ruby : |
| 3 |
|
| 4 |
#################################### |
| 5 |
# Ubuntu 12.04 Build |
| 6 |
# |
| 7 |
# A build machine with all the |
| 8 |
# tooling needed to build SSOpen on |
| 9 |
# Ubuntu 12.04. |
| 10 |
# |
| 11 |
# IP: 10.0.0.74 |
| 12 |
# |
| 13 |
#################################### |
| 14 |
|
| 15 |
|
| 16 |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
| 17 |
VAGRANTFILE_API_VERSION = "2" |
| 18 |
|
| 19 |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| 20 |
# All Vagrant configuration is done here. The most common configuration |
| 21 |
# options are documented and commented below. For a complete reference, |
| 22 |
# please see the online documentation at vagrantup.com. |
| 23 |
|
| 24 |
# Every Vagrant virtual environment requires a box to build off of. |
| 25 |
config.vm.box = "ubuntu-12.04" |
| 26 |
|
| 27 |
# The url from where the 'config.vm.box' box will be fetched if it |
| 28 |
# doesn't already exist on the user's system. |
| 29 |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" |
| 30 |
|
| 31 |
config.vm.host_name = "sso-ubuntu1204-build" |
| 32 |
|
| 33 |
config.vm.provision "shell", path: "setup.sh" |
| 34 |
config.vm.provision "shell", path: "build-sso.sh", privileged: false |
| 35 |
|
| 36 |
# Create a private network, which allows host-only access to the machine |
| 37 |
# using a specific IP. |
| 38 |
config.vm.network :private_network, ip: "10.0.0.74" |
| 39 |
|
| 40 |
# Create a public network, which generally matched to bridged network. |
| 41 |
# Bridged networks make the machine appear as another physical device on |
| 42 |
# your network. |
| 43 |
# config.vm.network :public_network |
| 44 |
|
| 45 |
# If true, then any SSH connections made will enable agent forwarding. |
| 46 |
# Default value: false |
| 47 |
# config.ssh.forward_agent = true |
| 48 |
|
| 49 |
# Share an additional folder to the guest VM. The first argument is |
| 50 |
# the path on the host to the actual folder. The second argument is |
| 51 |
# the path on the guest to mount the folder. And the optional third |
| 52 |
# argument is a set of non-required options. |
| 53 |
# config.vm.synced_folder "../data", "/vagrant_data" |
| 54 |
|
| 55 |
# Provider-specific configuration so you can fine-tune various |
| 56 |
# backing providers for Vagrant. These expose provider-specific options. |
| 57 |
# Example for VirtualBox: |
| 58 |
# |
| 59 |
config.vm.provider :virtualbox do |vb| |
| 60 |
# Don't boot with headless mode |
| 61 |
# vb.gui = true |
| 62 |
|
| 63 |
# Use VBoxManage to customize the VM. For example to change memory: |
| 64 |
vb.customize ["modifyvm", :id, "--memory", "1024"] |
| 65 |
end |
| 66 |
# |
| 67 |
# View the documentation for the provider you're using for more |
| 68 |
# information on available options. |
| 69 |
|
| 70 |
end |