-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
39 lines (34 loc) · 1.64 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# ----------------------------------------------------------------------------
# Basics
# ----------------------------------------------------------------------------
config.vm.box = 'precise32'
config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
# ----------------------------------------------------------------------------
# Networking
# ----------------------------------------------------------------------------
config.vm.network :private_network, ip: '10.10.10.10'
config.vm.network :forwarded_port, guest: 80, host: 8888
config.vm.network :forwarded_port, guest: 3306, host: 8889
# ----------------------------------------------------------------------------
# Provisioning
# ----------------------------------------------------------------------------
# UTC ALL THE THINGS!
# @see http://www.xormedia.com/utc-is-the-only-real-timezone/
config.vm.provision :shell, :inline => 'echo "Etc/UTC" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.manifest_file = 'base.pp'
puppet.module_path = 'puppet/modules'
end
# ----------------------------------------------------------------------------
# VirtualBox Configuration
# ----------------------------------------------------------------------------
config.vm.provider :virtualbox do |vb|
# Use UTC.
# @see http://www.virtualbox.org/manual/ch03.html#settings-motherboard
vb.customize ['modifyvm', :id, '--rtcuseutc', 'on']
end
end