New boxes!

This commit is contained in:
Fabio Rehm 2013-07-12 14:25:24 -03:00
parent e3665f88ae
commit e504ce3e8d
3 changed files with 4 additions and 5 deletions

View file

@ -55,7 +55,7 @@ vagrant plugin install vagrant-lxc
After installing, add a [base box](#base-boxes) using any name you want, for example: After installing, add a [base box](#base-boxes) using any name you want, for example:
``` ```
vagrant box add quantal64 http://dl.dropbox.com/u/13510779/lxc-quantal-amd64-2013-07-08.box vagrant box add quantal64 http://dl.dropbox.com/u/13510779/lxc-quantal-amd64-2013-07-12.box
``` ```
Then create a Vagrantfile that looks like the following, changing the box name Then create a Vagrantfile that looks like the following, changing the box name
@ -99,7 +99,6 @@ For other configuration options, please check [lxc.conf manpages](http://manpage
### Base boxes ### Base boxes
Please check [the wiki](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes) Please check [the wiki](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes)
for a list of [pre built](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes#available-boxes) for a list of [pre built](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes#available-boxes)
base boxes and information on [how to build your own](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes#building-your-own). base boxes and information on [how to build your own](https://github.com/fgrehm/vagrant-lxc/wiki/Base-boxes#building-your-own).

View file

@ -3,7 +3,7 @@
require 'pathname' require 'pathname'
BASE_URL = 'http://dl.dropbox.com/u/13510779' BASE_URL = 'http://dl.dropbox.com/u/13510779'
LAST_RELEASE_DATE = '2013-07-08' LAST_RELEASE_DATE = '2013-07-12'
LOCAL_BOXES_PATH = Pathname('../boxes/output').expand_path LOCAL_BOXES_PATH = Pathname('../boxes/output').expand_path
def lxc_box_url(release_name) def lxc_box_url(release_name)
file_name = "lxc-#{release_name}-amd64-#{LAST_RELEASE_DATE}.box" file_name = "lxc-#{release_name}-amd64-#{LAST_RELEASE_DATE}.box"

4
example/Vagrantfile vendored
View file

@ -32,9 +32,9 @@ echo "Hi there I'm a shell script used for provisioning"
releases.each do |release| releases.each do |release|
config.vm.define(release) do |lxc_config| config.vm.define(release) do |lxc_config|
lxc_config.vm.box = "#{release}64" lxc_config.vm.box = "#{release}64"
lxc_config.vm.box_url = "http://dl.dropbox.com/u/13510779/lxc-#{release}-amd64-2013-07-08.box" lxc_config.vm.box_url = "http://dl.dropbox.com/u/13510779/lxc-#{release}-amd64-2013-07-12.box"
# Uncomment if you want to try out a box built locally # Uncomment if you want to try out a box built locally
# lxc_config.vm.box_url = "../boxes/output/lxc-#{release}-amd64-2013-07-08.box" # lxc_config.vm.box_url = "../boxes/output/lxc-#{release}-amd64-2013-07-12.box"
lxc_config.vm.network :forwarded_port, guest: 80, host: (port += 1) lxc_config.vm.network :forwarded_port, guest: 80, host: (port += 1)
lxc_config.vm.hostname = "lxc-#{release}64-example" lxc_config.vm.hostname = "lxc-#{release}64-example"
end end