From 85d1116c563ccc4789626013a68267e3e05910d3 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Fri, 22 Jan 2021 19:51:31 -0600 Subject: [PATCH] dev(vagrant): make scripts run as non-privileged default user The scripts were excuted in the vagrant file as root, which was confusing some users, and addtionally meant we were not checking if sudo was being prefixed to the appropriate commands. Signed-off-by: Pete Birley Change-Id: I1049c68d6644de6c4f74e52cf81d59c4c174b291 --- tools/deployment/vagrant/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deployment/vagrant/Vagrantfile b/tools/deployment/vagrant/Vagrantfile index 64b84f0d..1e88000d 100644 --- a/tools/deployment/vagrant/Vagrantfile +++ b/tools/deployment/vagrant/Vagrantfile @@ -29,7 +29,7 @@ Vagrant.configure("2") do |config| vb.memory = 8192 end - config.vm.provision "shell", env: {"PRIVATE_NS" => ENV["PRIVATE_NS"]}, inline: <<-SHELL + config.vm.provision "shell", privileged: false, env: {"PRIVATE_NS" => ENV["PRIVATE_NS"]}, inline: <<-SHELL set -ex cd /airship_charts/ ./tools/gate/jarvis/010-pre-setup.sh