From 7444e95a065c83444d9cf4d406006a29b5a97adb Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 1 Sep 2017 16:26:03 -0500 Subject: [PATCH] Remove chef from aws template for security reasons --- packer/templates/aws/ubuntu_1404_ctf_2017.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packer/templates/aws/ubuntu_1404_ctf_2017.json b/packer/templates/aws/ubuntu_1404_ctf_2017.json index fce1bdf..bde284a 100644 --- a/packer/templates/aws/ubuntu_1404_ctf_2017.json +++ b/packer/templates/aws/ubuntu_1404_ctf_2017.json @@ -38,12 +38,19 @@ "metasploitable::flags", "metasploitable::sshd" ] + }, + { + "type": "shell", + "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", + "inline": [ + "apt-get remove chef" + ] } ], "variables": { "iso_url": "http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso", "iso_checksum_type": "md5", "iso_checksum": "ca2531b8cd79ea5b778ede3a524779b9", - "box_version": "0.1.6" + "box_version": "0.1.7" } }