From 9e90c39b6a527733f32cd0ef01aae3fa85eabd0d Mon Sep 17 00:00:00 2001 From: Mathew Hartley Date: Wed, 13 Nov 2013 12:56:41 +1300 Subject: [PATCH] BENTO-96 fix execute_command for debian to include env vars --- packer/debian-6.0.8-i386.json | 4 ++-- packer/debian-7.2.0-amd64.json | 4 ++-- packer/debian-7.2.0-i386.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packer/debian-6.0.8-i386.json b/packer/debian-6.0.8-i386.json index 209aed76a..af0b17155 100644 --- a/packer/debian-6.0.8-i386.json +++ b/packer/debian-6.0.8-i386.json @@ -85,7 +85,7 @@ ], "provisioners": [ { - "type": "shell", + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/debian/update.sh", "scripts/common/sshd.sh", @@ -96,7 +96,7 @@ "scripts/debian/cleanup.sh", "scripts/common/minimize.sh" ], - "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'" + "type": "shell" } ] } diff --git a/packer/debian-7.2.0-amd64.json b/packer/debian-7.2.0-amd64.json index 3bc593a3f..88397f7e1 100644 --- a/packer/debian-7.2.0-amd64.json +++ b/packer/debian-7.2.0-amd64.json @@ -85,7 +85,7 @@ ], "provisioners": [ { - "type": "shell", + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/debian/update.sh", "scripts/common/sshd.sh", @@ -96,7 +96,7 @@ "scripts/debian/cleanup.sh", "scripts/common/minimize.sh" ], - "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'" + "type": "shell" } ] } diff --git a/packer/debian-7.2.0-i386.json b/packer/debian-7.2.0-i386.json index c3103c46a..bd1a6d09d 100644 --- a/packer/debian-7.2.0-i386.json +++ b/packer/debian-7.2.0-i386.json @@ -85,7 +85,7 @@ ], "provisioners": [ { - "type": "shell", + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "scripts": [ "scripts/debian/update.sh", "scripts/common/sshd.sh", @@ -96,7 +96,7 @@ "scripts/debian/cleanup.sh", "scripts/common/minimize.sh" ], - "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'" + "type": "shell" } ] }