Metadata admin_pass for Windows Deploying

Christian Robottom Reis kiko at canonical.com
Tue Mar 6 02:29:35 UTC 2018


Adding Gabriel in case he missed this question -- Gabriel, how is this
meant to work in Windows?

On Thu, Mar 01, 2018 at 05:47:15PM -0300, Daniel Souza wrote:
> 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/>

> -- 
> Maas-devel mailing list
> Maas-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel

-- 
Christian Robottom Reis             [+1] 612 888 4935 | [+55] 16 99112 6430
VP Field Engineering                      http://launchpad.net/~kiko



More information about the Maas-devel mailing list