From a926308315126038dd08be32a4dccbf7d3748e08 Mon Sep 17 00:00:00 2001 From: Mason Packard Date: Sat, 20 Aug 2016 13:22:30 -0400 Subject: [PATCH] Build tar, vagrant , AWS --- ...nce-vbox.json => shibboleth-appliance.json | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) rename shibboleth-appliance-vbox.json => shibboleth-appliance.json (73%) diff --git a/shibboleth-appliance-vbox.json b/shibboleth-appliance.json similarity index 73% rename from shibboleth-appliance-vbox.json rename to shibboleth-appliance.json index a5fead0..7e17656 100644 --- a/shibboleth-appliance-vbox.json +++ b/shibboleth-appliance.json @@ -9,7 +9,8 @@ "ssh_username": "centos", "ssh_password": "centos", "region": "us-west-1", - "outputfile_name": "shibboleth-appliance-centos7-vbox-{{timestamp}}.tar" + "timestamper": "{{timestamp}}", + "outputfile_name": "shibboleth-appliance-centos7" }, "provisioners": [ { @@ -58,8 +59,24 @@ ], "post-processors": [ { - "output": "builds/{{user `outputfile_name`}}", - "type": "compress" + "type": "compress", + "compression_level": "9", + "output": "builds/{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar" + }, + { + "type": "vagrant", + "compression_level": "9", + "output": "builds/{{user `outputfile_name`}}-vagrant-{{user `timestamper`}}.box" + }, + { + "type": "amazon-import", + "access_key": "{{user `aws_access_key`}}", + "secret_key": "{{user `aws_secret_key`}}", + "region": "{{user `region`}}", + "s3_bucket_name": "internet2-ami-import-us-west-1", + "tags": { + "Description": "packer amazon-import-shibboleth-appliance {{user `timestamper`}}" + } } ] }