dist/ami: update packer to 1.5.1

Update Packer to 1.5.1.
Needed to rename clean_ami_name -> clean_resource_name on scylla.json, since
the variable name had been changed.
Also fixed checksum verification code, trimmed unwanted extra strings
from sha256sum output.
This commit is contained in:
Takuya ASADA
2020-01-01 08:08:58 +09:00
committed by Avi Kivity
parent 46386beba2
commit 893dfbce59
2 changed files with 5 additions and 5 deletions

View File

@@ -194,16 +194,16 @@ if [ ! -f variables.json ]; then
fi
if [ ! -d packer ]; then
EXPECTED="5e51808299135fee7a2e664b09f401b5712b5ef18bd4bad5bc50f4dcd8b149a1 packer_1.3.2_linux_amd64.zip"
wget -nv https://releases.hashicorp.com/packer/1.3.2/packer_1.3.2_linux_amd64.zip -O packer_1.3.2_linux_amd64.zip
CSUM=`sha256sum packer_1.3.2_linux_amd64.zip`
EXPECTED="3305ede8886bc3fd83ec0640fb87418cc2a702b2cb1567b48c8cb9315e80047d"
wget -nv https://releases.hashicorp.com/packer/1.5.1/packer_1.5.1_linux_amd64.zip -O packer_1.5.1_linux_amd64.zip
CSUM=$(sha256sum packer_1.5.1_linux_amd64.zip|cut -d ' ' -f 1)
if [ "$CSUM" != "$EXPECTED" ]; then
echo "Error while downloading packer. Checksum doesn't match! ($CSUM)"
exit 1
fi
mkdir packer
cd packer
unzip -x ../packer_1.3.2_linux_amd64.zip
unzip -x ../packer_1.5.1_linux_amd64.zip
cd -
fi

View File

@@ -36,7 +36,7 @@
"virtual_name": "ephemeral7"
}
],
"ami_name": "{{user `ami_prefix`}}scylla_{{isotime | clean_ami_name}}",
"ami_name": "{{user `ami_prefix`}}scylla_{{isotime | clean_resource_name}}",
"associate_public_ip_address": "{{user `associate_public_ip_address`}}",
"sriov_support": true,
"ena_support": true,