Deployment filters

Share your experience and thoughts about WAPT here / Come here and talk about your experience with Wapt, your opinion and your wishes
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided 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 (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Answer
MaximeJ
Messages: 8
Registration: May 26, 2024 - 09:28

August 14, 2024 - 08:29

Hello,

We've been using WAPT for about 5-6 months now and are generally satisfied with the tool, but coming from SCCM, we realize that we're missing some features.

Specifically, the ability to filter package deployment based on certain criteria before downloading the package to the workstations.
For example, let's say we have a fairly large piece of software (>1GB) that needs to be installed on all workstations except for virtual machines spread across the OUs.
Unless I'm mistaken, there's no way to do this in WAPT.

Of course, we can add conditions to the setup.py file and tell the tool to do nothing if it installs a VM, but to still complete the script. But this means having to cobble together several packages where we'd like to install just one, or telling WAPT that the package has installed when it hasn't actually done anything.
Given that WAPT has knowledge of the hardware and even software components of each workstation, I think it would be extremely useful to be able to use this data for deployments BEFORE downloading the packages to each workstation (and therefore running setup.py).

Another example: we want to deploy VPN software across an entire network, but only on laptops and not desktops. Knowing that all the workstations are mixed in different OUs and that there is no AD group encompassing all the desktops or all the laptops,
it would be incredibly useful to be able to launch the deployment at the root level, thus covering the entire network with some kind of exclusion, thereby avoiding unnecessary downloads on the desktops.

While waiting for a possible addition of this kind of functionality, I will continue to browse the numerous community sharing tools to try to find good solutions to these problems!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 14, 2024 - 12:13

Good morning

The use case you want for me is this:

You install a package called:

tis-conditional-install

On all machines in the network, (you can put it on the root OU)

And in the package you can finally create a customized recipe of what needs to be installed depending on different conditions.

Code: Select all

def install():
    if wmi_info()['Win32_ComputerSystem']['PCSystemType'] = 2 :
        WAPT.install('tis-vpn')
        
    if wmi_info_basic()["System_Information"]["Manufacturer"] == 'innotek GmbH' :
        WAPT.install('tis-drivers-for-innotek')
Some users manage their entire fleet like this ;)

It's a sort of WAPT as code ;)

There is a very old example here:
https://wapt.lesfourmisduweb.org/smp-al ... t/setup.py
MaximeJ
Messages: 8
Registration: May 26, 2024 - 09:28

August 14, 2024 - 4:36 PM

Ah yes, thank you for this tip, it's exactly what we want to do!

And perhaps the first building block of a true Wapt as code for future versions. ;)
Answer