default packages for new clients?
default packages for new clients?
I've installed the latest version of OPSI (on Centos), created and installed some packages and deployed the packages from the config editor.
Next step is trying to set 'default' packages for new clients. So after the opsi-client installs on a new PC some default packages should be installed automatically, without setting 'required action' to 'setup' for the new client in the config editor.
Can I use opsi-package-manager -f to accomplish 'default' package installations?
I've found a post about adding the default packages to /var/lib/opsi/config/templates/pcproto.ini, but that doesn't seem to work (anymore?). Installing the client with opsi-deploy-client-agent, I got the error 'File contains no section headers.' After fixing a typo in pcproto.ini the error was gone, but packages weren't installed either.
Thanks in advance for any tips!
Regards, Eric
Re: default packages for new clients?
a workaround is to create a new "dummy" package that only contains product dependencies.
http://download.uib.de/opsi4.0/doc/html ... e-handling
look at Figure 4.9. Create product dependency: No/Yes
Regards
Birgit Hubal
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: default packages for new clients?
thanks for your reply, sorry that I didn't respond sooner.
I've created the dummy package with dependencies to our 'default' packages and those packages get installed fine.
So, by default it's not possible to assign default packages to new clients? For instance by assigning packages to a group (of clients).
Regards, Eric
Re: default packages for new clients?
there is another possibility. But only if you are using the file-backend:
(we had this in viewtopic.php?f=8&t=501)
You have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:
Code: Alles auswählen
firefox = not_installed:setup
python = not_installed:setup
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.
Greetings
Birgit
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de