<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"><<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>></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 "centos" user, password "centos" specified:<br><br>#cloud-config<br>output:<br> all: '>> /var/log/cloud-init-output.log'<br>disable_root: 0<br>runcmd:<br>- 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:<br> ["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'<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 "centos" for the user root:<br><br>#cloud-config<br>output:<br> all: '>> /var/log/cloud-init-output.log'<br>password: centos<br>disable_root: 0<br>runcmd:<br>- 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:<br> ["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'<br>timezone: Europe/Warsaw<br>ssh_pwauth: true<br>chpasswd:<br> expire: false<br>user: root<br><br><br>Maybe I didn't discover anything new but I wasn't able to find any documentation about this before.</div></div></div>