Metadata admin_pass for Windows Deploying

Daniel Souza daniel.batista at maxihost.com.br
Thu Mar 1 20:47:15 UTC 2018


Hello guys,

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.

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.

Acording to Cloudbase-init docs, I have to use the metadata "admin_pass" 
to set Windows Admin password.

This is my maas_user_data.yml file has, it loads when the applications 
start a new deploy
#cloud-config
password: {{ PASSWORD }}
chpasswd: { expire: false }
ssh_pwauth: true

cloudbase-config
admin_pass: {{ PASSWORD }}
---

The Windows image has cloudbase-init installed, after deploying, this is 
the node's "cloudbase-init.conf":
[DEFAULT]
username=Admin
groups=Administrators
inject_user_password=true
first_logon_behaviour=clear_text_injected_only
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
bsdtar_path=C:\Program Files\Cloudbase 
Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=false
debug=true
log-dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
log-file=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
logging_serial_port_settings=
local_scripts_path=C:\Program Files\Cloudbase 
Solutions\Cloudbase-Init\LocalScripts\
-----------------

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.

Did someone face this issue before or have any idea about it?

I thank any help.

Regards,

*Daniel Batista*, DevOps Engineer
Maxihost Logo
+55-4933-7591 <tel:+55-4933-7591>
www.maxihost.com.br <https://www.maxihost.com.br/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20180301/c54768db/attachment.html>


More information about the Maas-devel mailing list