default packages for new clients?

Antworten
EricT
Beiträge: 20
Registriert: 18 Nov 2011, 12:49

default packages for new clients?

Beitrag 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
Benutzeravatar
bhubal
uib-Team
Beiträge: 119
Registriert: 16 Sep 2010, 17:14

Re: default packages for new clients?

Beitrag 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


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


EricT
Beiträge: 20
Registriert: 18 Nov 2011, 12:49

Re: default packages for new clients?

Beitrag 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
Benutzeravatar
bhubal
uib-Team
Beiträge: 119
Registriert: 16 Sep 2010, 17:14

Re: default packages for new clients?

Beitrag 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


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


Antworten