[Openstack-operators] keypair inserting not working with	fedora16 image
    Abel Lopez 
    alopgeek at gmail.com
       
    Thu Nov  8 20:44:15 UTC 2012
    
    
  
I ran into the same problem, my solution was to put a modified cloud.cfg in my git repository and have the post-install script of my boxgrinder copy that to /etc/cloud
On Nov 8, 2012, at 12:01 PM, Jan van Eldik wrote:
> Hi,
> 
>> Check your cloud-init settings and ensure that the user that you want to
>> set the keypair for is configured correctly.  It may be injecting the
>> keypair for a different user than you expect.
> 
> We recently experienced this as well - cloud-init uses the "ec2-user" account by default, and we now run:
> 
>  if [ -e /etc/cloud/cloud.cfg ]; then
>    /bin/sed -i 's|ec2-user|root|' /etc/cloud/cloud.cfg
>  fi
> 
> in our image creation procedure to change this to "root"
> 
>            hth, cheers, Jan
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
    
    
More information about the OpenStack-operators
mailing list