Seite 1 von 1

default packages for new clients?

Verfasst: 18 Nov 2011, 13:24
von EricT
Hi,

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?

Verfasst: 18 Nov 2011, 16:50
von bhubal
Hi Eric,

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

Re: default packages for new clients?

Verfasst: 23 Nov 2011, 12:58
von EricT
Hi Birgit,

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?

Verfasst: 02 Dez 2011, 16:51
von bhubal
Hi,
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

in this file and create a new client, you will notice that these products are automatically set to setup in the products-tab of the newly created client.
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