summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-12-01 10:27:31 +0100
committervarac <varacanero@zeromail.org>2015-12-01 10:27:31 +0100
commit6cb59ea4149a94ec2ad037f97b00c9a1c4b75890 (patch)
tree4732ff5dd81356c00c1d3ecd3cf4368237692483
parent78cb07746c1e990374b92b5ea492b2ac63210f8e (diff)
[feat] Make vagrant basebox configurable
reads @vagrant_basebox from Leapfile or ~/.leaprc, needs commit baaa21ca2 in leap_cli. - Resolves: #7657
-rw-r--r--lib/leap_cli/commands/vagrant.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index bf683cb6..a0de30c4 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -147,6 +147,8 @@ module LeapCli; module Commands
netmask = IPAddr.new('255.255.255.255').mask(LeapCli.leapfile.vagrant_network.split('/').last).to_s
basebox = options[:basebox] || 'LEAP/jessie'
+ # override basebox with custom setting from Leapfile or ~/.leaprc
+ basebox = leapfile.vagrant_basebox || basebox
if vagrant_version <= Gem::Version.new('1.1.0')
lines << %[Vagrant::Config.run do |config|]