WADS-specific Ubuntu username

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

August 20, 2025 - 4:45 PM

Good morning,

We have configured our WADS to be able to deploy workstations running Ubuntu. The beginning of our basic cloud-config file is as follows:

Code: Select all

#cloud-config
autoinstall:
  # version is an Autoinstall required field.
  version: 1

  identity:
    hostname: {{hostname}}
    username: monprenom
    password: "monmdp"

  locale: fr_FR.UTF-8

  keyboard:
    layout: fr
    variant: oss

  timezone: Europe/Paris

  packages:
    - ubuntu-desktop
    - gdm3
    - language-pack-fr
    - language-pack-gnome-fr
    ...
As can be seen from the {{hostname}} parameter, the script will use the hostname specified during the PXE boot of the machine. But is it possible to do the same for the username (instead of "myfirstname"), so that after deployment the machine has the name we specified during the PXE boot and we don't have to run usermod commands after deployment (especially for the user's session name, display name, and home)?.

Thanks in advance,

Sincerely.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 21, 2025 - 4:20 PM

Hello,
these won't be domain users.
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

August 21, 2025 - 4:46 PM

Hello,

No, there are no domain users.

Best regards.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 22, 2025 - 4:55 PM

Hello,
this could be handled by a package containing a dictionary {machine: user}. Depending on the machine, it would create the corresponding user.
Best regards,
Bertrand
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

August 25, 2025 - 09:05

Hello,

thank you for your feedback. However, is this package available in the WAPT store? If so, how is it used?

Regards.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 25, 2025 - 12:11

Good morning,
There is no existing package, but it could look something like this:

Code: Select all

from setuphelpers import *

def install():
    userdict = {'machine1': 'user1', 'machine2': 'user2'}
    user = userdict[host_info()['computer_name']]
And then perform all the actions of useradd/usermod with the retrieved user variable.
Best regards,
Bertrand
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 25, 2025 - 12:18

We could also use this package as a guide for encrypting the password:
https://wapt.tranquil.it/store/fr/detai ... _PROD.wapt
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

August 26, 2025 - 2:37 PM

Hello,

OK, but isn't it possible to have two prompts at the start of the WAPT PXE? One asking for the hostname (as is already the case) and one asking for the username, so that it can be used in the cloud init configuration.

Thank you in advance, best regards.
thomas789
Messages: 95
Registration: May 31, 2021 - 3:44 p.m.

September 18, 2025 - 4:32 PM

Hello,

were you able to review my request?

Thank you in advance, best regards.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 19, 2025 - 9:29 PM

thomas789 wrote: August 26, 2025 - 2:37 PM Okay, but isn't it possible to have two prompts at the start of the WAPT PXE? One asking for the hostname (as is already the case) and one asking for the username, so that it can be used in the cloud init configuration.
Not currently.

We need to include "extra data" in WADs that could be used in templates. This extra data would be fed into the console. Currently, this isn't the case.

The most pragmatic solution in the meantime is to have the user join the domain and add the machine to the domain with an SSD (it works like Windows with local credential cache), so it seems like the most logical solution... Plus, it allows for automatic Kerberos authentication (coupled with Keycloak, it's perfect)
Answer