[CentOS-virt] cloud-init issue w/ GenericCloud image

Thu Mar 31 11:37:12 UTC 2016
Karanbir Singh <mail-lists at karan.org>

On 30/03/16 03:46, Tom Sorensen wrote:
> I'm using the C7.2 GenericCloud image with KVM and am trying to inject
> my own ssh key by adding it to /etc/cloud/cloud.cfg.d:
> 

Have you considered using a Config Drive instead ? That way you can
actually do whatever contexutalisation you need. Here is an example you
can likely clone and extend:

https://github.com/kbsingh/atomic-ci/blob/master/tests/z_0-genConfigDrive/1-genConfigDrive.sh

You would then just need to boot the instance with this config drive
.iso attached as the cdrom to the machine, which should also just be
scriptable.

Regards

-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
GnuPG Key : http://www.karan.org/publickey.asc