Use new base boxes as dev VMs
This commit is contained in:
parent
366d1dc3a5
commit
4a9e4b3394
2 changed files with 7 additions and 9 deletions
10
development/Vagrantfile
vendored
10
development/Vagrantfile
vendored
|
@ -2,16 +2,16 @@
|
|||
# vi: set ft=ruby :
|
||||
|
||||
require 'pathname'
|
||||
BASE_URL = 'http://dl.dropbox.com/u/13510779'
|
||||
LAST_RELEASE_DATE = '2013-07-12'
|
||||
BASE_URL = 'http://bit.ly/'
|
||||
LAST_RELEASE_DATE = '2013-09-28'
|
||||
LOCAL_BOXES_PATH = Pathname('../boxes/output').expand_path
|
||||
def lxc_box_url(release_name)
|
||||
file_name = "lxc-#{release_name}-amd64-#{LAST_RELEASE_DATE}.box"
|
||||
local_box_file = LOCAL_BOXES_PATH.join(file_name)
|
||||
box_name = "vagrant-lxc-#{release_name}-amd64-#{LAST_RELEASE_DATE}"
|
||||
local_box_file = LOCAL_BOXES_PATH.join("#{box_name}.box")
|
||||
|
||||
local_box_file.exist? ?
|
||||
local_box_file.to_s :
|
||||
"#{BASE_URL}/#{file_name}"
|
||||
"#{BASE_URL}/#{box_name}"
|
||||
end
|
||||
|
||||
BOXES = {
|
||||
|
|
|
@ -146,8 +146,6 @@ file {
|
|||
'/usr/bin/lxc-vagrant-wrapper':
|
||||
ensure => 'present',
|
||||
mode => '0755',
|
||||
content => "
|
||||
#!/usr/bin/env ruby
|
||||
exec ARGV.join(' ')
|
||||
"
|
||||
content => "#!/usr/bin/env ruby
|
||||
exec ARGV.join(' ')"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue