2013-04-20 20:02:25 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.require_plugin 'vagrant-lxc'
|
2013-05-08 22:48:54 +00:00
|
|
|
Vagrant.require_plugin 'vagrant-cachier'
|
2013-04-20 20:02:25 +00:00
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.box = "quantal64"
|
|
|
|
config.vm.hostname = 'lxc-test-box'
|
|
|
|
|
2013-05-08 22:48:54 +00:00
|
|
|
config.cache.enable :apt
|
2013-04-20 23:02:56 +00:00
|
|
|
|
|
|
|
config.vm.provision :shell,
|
|
|
|
inline: 'mkdir -p /vagrant/tmp && echo -n "Provisioned" > /vagrant/tmp/provisioning'
|
|
|
|
|
|
|
|
config.vm.network :forwarded_port, guest: 80, host: 8080
|
|
|
|
config.vm.provision :shell,
|
2013-04-23 11:11:40 +00:00
|
|
|
inline: 'sudo apt-get install nginx -y && sudo service nginx start'
|
2013-04-20 20:02:25 +00:00
|
|
|
end
|