<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-09-23 13:49 GMT+02:00 Michal Skrivanek <span dir="ltr">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
</span>it should be plaintext<br>
did you want to configure root or some other user?<br>
<br></blockquote>As some other user. And after fiddling a while (thanks for the cdrom tip!), I discovered that the password setting works only with the root user. As a proof, here it is the user_data created with a &quot;centos&quot; user, password &quot;centos&quot; specified:<br><br>#cloud-config<br>output:<br>  all: &#39;&gt;&gt; /var/log/cloud-init-output.log&#39;<br>disable_root: 0<br>runcmd:<br>- &#39;sed -i &#39;&#39;/^datasource_list: /d&#39;&#39; /etc/cloud/cloud.cfg; echo &#39;&#39;datasource_list:<br>  [&quot;NoCloud&quot;, &quot;ConfigDrive&quot;]&#39;&#39; &gt;&gt; /etc/cloud/cloud.cfg&#39;<br>timezone: Europe/Warsaw<br>ssh_pwauth: true<br>chpasswd:<br>  expire: false<br>user: centos<br>package_upgrade: true<br><br>and here it is the same file setting a password &quot;centos&quot; for the user root:<br><br>#cloud-config<br>output:<br>  all: &#39;&gt;&gt; /var/log/cloud-init-output.log&#39;<br>password: centos<br>disable_root: 0<br>runcmd:<br>- &#39;sed -i &#39;&#39;/^datasource_list: /d&#39;&#39; /etc/cloud/cloud.cfg; echo &#39;&#39;datasource_list:<br>  [&quot;NoCloud&quot;, &quot;ConfigDrive&quot;]&#39;&#39; &gt;&gt; /etc/cloud/cloud.cfg&#39;<br>timezone: Europe/Warsaw<br>ssh_pwauth: true<br>chpasswd:<br>  expire: false<br>user: root<br><br><br>Maybe I didn&#39;t discover anything new but I wasn&#39;t able to find any documentation about this before.</div></div></div>