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" } }