<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello guys,</p>
<p>I'm working in an integration between MAAS and our system, but
I'm facing a problem to set the Admin password when deploying
Windows nodes.</p>
<p>The integration is working fine for Linux (by disabling SSH key
and set a password for ubuntu/centos user), I'm passing the
password using a sample YML file in base64 encoding, but for
Windows, for some reason, it seems curtin is not applying
cloud-init custom userdata config and I didn't get any error in
log files.</p>
<p>Acording to Cloudbase-init docs, I have to use the metadata
"admin_pass" to set Windows Admin password. </p>
<p>This is my maas_user_data.yml file has, it loads when the
applications start a new deploy<br>
#cloud-config<br>
password: {{ PASSWORD }}<br>
chpasswd: { expire: false }<br>
ssh_pwauth: true<br>
<br>
cloudbase-config<br>
admin_pass: {{ PASSWORD }}<br>
---</p>
<p>The Windows image has cloudbase-init installed, after deploying,
this is the node's "cloudbase-init.conf":<br>
[DEFAULT]<br>
username=Admin<br>
groups=Administrators<br>
inject_user_password=true<br>
first_logon_behaviour=clear_text_injected_only<br>
config_drive_raw_hhd=true<br>
config_drive_cdrom=true<br>
config_drive_vfat=true<br>
bsdtar_path=C:\Program Files\Cloudbase
Solutions\Cloudbase-Init\bin\bsdtar.exe<br>
mtools_path=C:\Program Files\Cloudbase
Solutions\Cloudbase-Init\bin\<br>
verbose=false<br>
debug=true<br>
log-dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\<br>
log-file=cloudbase-init.log<br>
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN<br>
logging_serial_port_settings=<br>
local_scripts_path=C:\Program Files\Cloudbase
Solutions\Cloudbase-Init\LocalScripts\<br>
-----------------</p>
<p>Isn't clear for me if I need to create a custom "curtin_userdata"
file at "/etc/maas/preseeds/" for my Windows image works fine.</p>
<p>Did someone face this issue before or have any idea about it?<br>
<br>
I thank any help.</p>
<p>Regards,<br>
</p>
<div class="moz-signature">
<div><strong>Daniel Batista</strong>, DevOps Engineer</div>
<div><img
src="https://ci3.googleusercontent.com/proxy/dkhpqVyHBDlcmhXNSzxBtCv954S89uqQCQlSQQsJudmssRwBbTIFwXVp5RLuKs5coWv9eVXOAvaafilBrxTBOiwPIC5KuGMtAn9mrknImxS-ug6XC4AVpsypJo0orUD6nLLzyA=s0-d-e1-ft#http://www.maxihost.com.br/content/themes/mhsass/assets/img/logo-signature.png"
alt="Maxihost Logo"></div>
<div><a href="tel:+55-4933-7591" target="_blank" rel="noopener">+55-4933-7591</a> <br>
<a href="https://www.maxihost.com.br/" target="_blank"
rel="noopener">www.maxihost.com.br</a></div>
</div>
</body>
</html>