Use new base boxes as dev VMs

This commit is contained in:
Fabio Rehm 2013-11-06 22:08:13 -02:00
parent 366d1dc3a5
commit 4a9e4b3394
2 changed files with 7 additions and 9 deletions

View file

@ -2,16 +2,16 @@
# vi: set ft=ruby : # vi: set ft=ruby :
require 'pathname' require 'pathname'
BASE_URL = 'http://dl.dropbox.com/u/13510779' BASE_URL = 'http://bit.ly/'
LAST_RELEASE_DATE = '2013-07-12' LAST_RELEASE_DATE = '2013-09-28'
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" box_name = "vagrant-lxc-#{release_name}-amd64-#{LAST_RELEASE_DATE}"
local_box_file = LOCAL_BOXES_PATH.join(file_name) local_box_file = LOCAL_BOXES_PATH.join("#{box_name}.box")
local_box_file.exist? ? local_box_file.exist? ?
local_box_file.to_s : local_box_file.to_s :
"#{BASE_URL}/#{file_name}" "#{BASE_URL}/#{box_name}"
end end
BOXES = { BOXES = {

View file

@ -146,8 +146,6 @@ file {
'/usr/bin/lxc-vagrant-wrapper': '/usr/bin/lxc-vagrant-wrapper':
ensure => 'present', ensure => 'present',
mode => '0755', mode => '0755',
content => " content => "#!/usr/bin/env ruby
#!/usr/bin/env ruby exec ARGV.join(' ')"
exec ARGV.join(' ')
"
} }