Commit bf4e46ee8f5c0d0ec62ee6e4b2f7ab0cd157aa50
1 parent
5ee6094d
Exists in
master
and in
89 other branches
lxc: cache sudo credentials before bringing boxes up
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
Vagrantfile
@@ -3,6 +3,11 @@ | @@ -3,6 +3,11 @@ | ||
3 | 3 | ||
4 | require 'yaml' | 4 | require 'yaml' |
5 | 5 | ||
6 | +load './local.rake' if File.exists?('local.rake') | ||
7 | +if ENV['SPB_ENV'] == 'lxc' | ||
8 | + system('sudo', '-v') | ||
9 | +end | ||
10 | + | ||
6 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | 11 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
7 | VAGRANTFILE_API_VERSION = "2" | 12 | VAGRANTFILE_API_VERSION = "2" |
8 | 13 | ||
@@ -13,7 +18,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | @@ -13,7 +18,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
13 | config.vm.provision 'shell', path: 'utils/proxy.sh', args: [proxy] | 18 | config.vm.provision 'shell', path: 'utils/proxy.sh', args: [proxy] |
14 | end | 19 | end |
15 | 20 | ||
16 | - load './local.rake' if File.exists?('local.rake') | ||
17 | env = ENV.fetch('SPB_ENV', 'local') | 21 | env = ENV.fetch('SPB_ENV', 'local') |
18 | 22 | ||
19 | if File.exist?("config/#{env}/ips.yaml") | 23 | if File.exist?("config/#{env}/ips.yaml") |