Add an Amazon template for building AMIs 09/10509/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 8 May 2018 01:56:56 +0000 (18:56 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 10 May 2018 18:45:29 +0000 (11:45 -0700)
commit180b4d609ae8664943967855022054f802677093
treed46f1ffc203f5da17345e8eff204f606cf31afe5
parent3a19315b92fec01a9cf5b37668d0c377c3b172b5
Add an Amazon template for building AMIs

The differences between this builder and the openstack one are the cloud
specific options passed, and the disabling of ANSIBLE_PIPELINING.

For some reason ansible is not able to set up the local ssh connection
(ssh <ssh_user>@127.0.0.1) on the EC2 instance after transfering the
playbook files, yet it can successfully ssh to the machine.

Disabling the pipelining support opens a new ssh connection each time
ansible runs a task. This takes more time, but works.

This patch also includes an amazon cloud example var file.

Change-Id: I2b9f273e86fd7bc1ddfde34d26eebfd6249a6a0a
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
templates/builder-aws.json [new file with mode: 0644]
vars/cloud-env-aws.json.example [new file with mode: 0644]