Page 1 of 1

[SOLVED] Installing the WAPT agent on Ubuntu WADS

Published: August 22, 2025 - 09:26
by thomas789
Good morning,

How can I install the WAPT agent during a WADS deployment to an Ubuntu machine? In my cloud-init configuration, I tried to install it via runcmd:

Code: Select all

runcmd:
 - wget https://wapt.tranquil.it/release/wapt-2.6.0.17392-0ac7bf48/tis-waptagent-2.6.0.17392-0ac7bf48-amd64.deb -O /home/usertemp/test.deb
 - dpkg -i /home/usertemp/test.deb
or:

Code: Select all

runcmd:
 - [curl -o /home/usertemp/fichier.deb https://wapt.tranquil.it/release/wapt-2.6.0.17392-0ac7bf48/tis-waptagent-2.6.0.17392-0ac7bf48-amd64.deb]
 - [dpkg -i /home/usertemp/test.deb]
Or I even tried creating a simple file using modules such as:

Code: Select all

write_files:
  - path: /home/usertemp/fichiertest
    permissions: '0644'
    owner: usertemp:usertemp
    content: |
      Contenu de mon fichier
But that doesn't work either.
So, is it related to my indentation (I placed runcmd at the same level as autoinstall / writefiles indented inside autoinstall), the order of the script steps, WADS not being supported...?
Furthermore, the "Load a post-install script" function is greyed out when it comes to a non-Windows WADS deployment.

Thanks in advance,

Sincerely.

Re: Installing the WAPT agent on Ubuntu WADS

Published: August 22, 2025 - 5:42 PM
by blemoigne
Hello,
I don't know if you've noticed that templates exist in C:\Program Files (x86)\wapt\templates\wads_template\linux\conf?
Best regards,
Bertrand

Re: Installing the WAPT agent on Ubuntu WADS

Published: August 25, 2025 - 2:22 PM
by thomas789
Good morning,

It's all good, I was able to use it, thank you!

Lines used:

Code: Select all

- wget {{server_url}}wads/ubuntu24/tis-waptagent.deb --directory-prefix /target/tmp/
- curtin in-target --target=/target -- bash -c "DEBIAN_FRONTEND=noninteractive apt-get install /tmp/tis-waptagent*.deb -y --quiet=2"
- curtin in-target --target=/target -- bash -c "/opt/wapt/wapt-get.bin reset-config-from-url {{url_conf_default}}"

Re: Installing the WAPT agent on Ubuntu WADS

Published: August 25, 2025 - 3:15 PM
by blemoigne
OK, perfect, I'm closing this thread.
Good afternoon,
Bertrand