From: Mike Marchetti Date: Wed, 3 Oct 2018 20:12:08 +0000 (-0400) Subject: Setup sudo nopassword for initial packer build X-Git-Tag: v5.0.0~86^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F6622%2F1;p=osm%2Fdevops.git Setup sudo nopassword for initial packer build Change-Id: I662c8f3fdc26be5c0117e663346ff1d29d60ac0b Signed-off-by: Mike Marchetti --- diff --git a/packer/ubuntu1604-juju.json b/packer/ubuntu1604-juju.json index 51417455..36b25095 100644 --- a/packer/ubuntu1604-juju.json +++ b/packer/ubuntu1604-juju.json @@ -2,12 +2,12 @@ "provisioners": [ { "type": "shell", - "script": "scripts/install_packages.sh" + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'", + "script": "scripts/setup.sh" }, { "type": "shell", - "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'", - "script": "scripts/setup.sh" + "script": "scripts/install_packages.sh" }, { "type": "file",