<div dir="ltr">The only thing I can think of is that the default user should just be "default", not qualified with "name". Perhaps that is clobbering your next entry or just creating a syntax error.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 11:34 AM, Carlos Konstanski <span dir="ltr"><<a href="mailto:ckonstanski@pippiandcarlos.com" target="_blank">ckonstanski@pippiandcarlos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I cannot get a simple cloud.cfg to be applied to a newly created<br>
instance. This is the cloud.cfg: (sensitive info removed)<br>
<br>
users:<br>
  - name: default<br>
  - name: ckonstanski<br>
    groups: sudo<br>
    shell: /bin/bash<br>
    sudo: ['ALL=(ALL) NOPASSWD:ALL']<br>
    passwd: <my password hash taken from /etc/shadow><br>
    lock_passwd: False<br>
    ssh-authorized-keys:<br>
      - ssh-rsa <my ssh pubkey taken from ~/.ssh/id_rsa.pub><br>
<br>
<br>
I'm not usually in the habit of setting passwords, but I had hoped that<br>
perhaps it only the SSH pubkey part that wasn't working. Turns out none<br>
of it works, the user isn't created at all.<br>
<br>
I tried with a variety of OS images: gentoo, ubuntu 14.04, ubuntu 16.04,<br>
centos 7. I downloaded official cloud images for all of these.<br>
<br>
If I shell onto the instances and run:<br>
<br>
curl <a href="http://169.254.169.254/2009-04-04/user-data" rel="noreferrer" target="_blank">http://169.254.169.254/2009-<wbr>04-04/user-data</a><br>
<br>
the cloud.cfg is returned.<br>
<br>
I built this openstack according to the official newton install guide.<br>
<br>
Looking for ways to troubleshoot this. What is the mechanism that gets<br>
the cloud.cfg applied? Any info would be helpful, even a link.<br>
<br>
Sincerely,<br>
<br>
Carlos Konstanski<br>
<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
</blockquote></div><br></div>