From 942122298a90e139559460bb27be6418c043981d Mon Sep 17 00:00:00 2001 From: Mark Wunsch Date: Wed, 20 Apr 2016 10:51:49 -0400 Subject: [PATCH] Expose Forecast key to guest VM environment --- Vagrantfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index a2977d0..5055d23 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -92,6 +92,11 @@ EOF sudo chown vagrant /var/log/jackd.log SHELL + config.vm.provision "shell", name: "env", privileged: false do |s| + # Use the Host's env FORECAST_API_KEY for guest + s.inline = "echo export #{ENV.assoc('FORECAST_API_KEY').join('=')} >> $HOME/.bashrc" + end + config.vm.provision "shell", name: "jackd", run: "always", privileged: false do |s| # you need to restart the machine (w/ vagrant reload) in order for # this to run w/o incident. something about the dbus conf not @@ -103,5 +108,5 @@ end # TODO: # ✓ Need to start Jackd reliably -# + Need Forecast API key in ENV +# ✓ Need Forecast API key in ENV # + Need AWS credentials profile for "sonic-sketch"