From bf4e46ee8f5c0d0ec62ee6e4b2f7ab0cd157aa50 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 25 May 2015 13:29:49 -0300 Subject: [PATCH] lxc: cache sudo credentials before bringing boxes up --- Vagrantfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index fcc129b..12220ef 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,6 +3,11 @@ require 'yaml' +load './local.rake' if File.exists?('local.rake') +if ENV['SPB_ENV'] == 'lxc' + system('sudo', '-v') +end + # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" @@ -13,7 +18,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.provision 'shell', path: 'utils/proxy.sh', args: [proxy] end - load './local.rake' if File.exists?('local.rake') env = ENV.fetch('SPB_ENV', 'local') if File.exist?("config/#{env}/ips.yaml") -- libgit2 0.21.2