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 <pete@port.direct>
Change-Id: I1049c68d6644de6c4f74e52cf81d59c4c174b291
This commit is contained in:
Pete Birley 2021-01-22 19:51:31 -06:00 committed by Pete Birley
parent 37b6d1c63a
commit 85d1116c56

View File

@ -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