From bcbad570aa0b9abdcd1e0f5661a2f453d28b8108 Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Wed, 3 Oct 2018 16:12:08 -0400 Subject: [PATCH] Setup sudo nopassword for initial packer build Change-Id: I662c8f3fdc26be5c0117e663346ff1d29d60ac0b Signed-off-by: Mike Marchetti --- packer/ubuntu1604-juju.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", -- 2.25.1