taliesins / packer-baseboxes

Templates for packer to build base boxes
221 stars 93 forks source link

cloud-init support #8

Closed fw2568 closed 7 years ago

fw2568 commented 7 years ago

Hello,

please review and consider this pull request:

I have added a template to generate a image that is compatible with cloud-init. The main difference is that I removed the swap partition from preseed.cfg because this will allow cloud-init to resize root partition automatically. cloud-init can also generate a swap file automatically.

Please note that the file hyperv-ubuntu-160.04-cloud-init.json is missing the lines

      "./linux/ubuntu/hyperv-xenial.sh",
      "./linux/ubuntu/hyperv-gen2.sh",

from my previous pull request, so if you would accept both pull request you this lines have to be added.

Thanks, Frank