Page 1 of 1

[RESOLVED] Packet deployment rule

Published: April 28, 2025 - 2:45 PM
by gch14800
Hello,

I was wondering if it's possible to set specific rules for packages in order to, for example:

- Block the installation of a package on a specific brand of computer (or conversely, only allow installation on a specific brand)
- Allow or block package installation based on the computer model.


The goal is to be able to create a list of packages per OU (Organizational Unit), so if I have an ASUS PC and not a Dell, I don't install Dell updates. For example, I would have several examples, particularly regarding drivers and other things.

Any ideas?

Thanks in advance.

Re: Packet deployment rule

Published: April 28, 2025 - 4:12 PM
by blemoigne
Good morning,
You can use a "meta-package" which will install other packages under certain conditions. Example:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
	if host_info()['system_manufacturer'] == 'LENOVO':
		WAPT.install('tis-paquet-lenovo')
Have a good rest of the day
Bertrand