Default settings for "Configuration for client"

Antworten
michael.nydegger
Beiträge: 4
Registriert: 25 Dez 2013, 12:00

Default settings for "Configuration for client"

Beitrag von michael.nydegger »

Hi

We are starting with OPSI. A great Tool, which works basically fine.
No I want to change de Default settings in "Configuration for client": webinterface configed -> choose a client -> "netboot products" -> "win7-x64" -> on the right side "Configuration for client"

For example I want the imagename to "Windows 7 Enterprise" for ALL Clients. If I change this in the section above it's just for the actual client.

After some minutes I found this file: /var/lib/opsi/config/products/win7-x64_4.0.3-2.netboot
And changed the following content:

Code: Alles auswählen

line 167: default: ["de-DE"] -> NEW    default: ["de-CH"]
line 176: default: ["0407:000000407"] -> NEW    default: ["0807:000000807"]
line 194: default: ["Windows 7 PROFESSIONAL"] -> NEW   default: ["Windows 7 ENTERPRISE"]
After those changes I restarted the server twice an run "/etc/init.d/opsiconfd restart" as well as "/etc/init.d/opsiconfd reload" and "/etc/init.d/opsiconfd force-reload". Also in the webinterface I clicked the button beside the title "Configuration for client" named "set client values to server defaults". Also in the webinterface I tried "File" -> "Reload all Data"
Nothing happend.

In the log-File "/var/log/opsi/opsiconfd/[IP address of the computer where the webinterface was accessed].log" was no Error which pointed to this problem.

Did I edited the proper file (/var/lib/opsi/config/products/win7-x64_4.0.3-2.netboot)?
Unfortunately I could not find any documentation (OPSI getting started, OPSI Manual, OPSI Wiki) about this topic.
Does someone know, how I can change the "Configuration for client" Defaults?

Thanks a lot for your ideas.

Michael
Uster, Switzerland
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Default settings for "Configuration for client"

Beitrag von SisterOfMercy »

I do it like this; it is somewhere in the manual, forgot where, but this is what I documented a while ago. Change winxppro-x64 to the product of your choice, and opsi.yourdomain.nl to the FQDN of your opsi server.
After the first step edit the property_config.json file. The last step is just to view your changes.

Code: Alles auswählen

opsi-admin -d method productPropertyState_getObjects [] '{"productId":"winxppro-x64","objectId":"opsi.yourdomain.nl"}'\ > /opt/pcbin/install/property_config.json
opsi-admin -d method productPropertyState_updateObjects < /opt/pcbin/install/property_config.json
opsi-admin -d method productPropertyState_getObjects [] '{"productId":"winxppro-x64","objectId":"opsi.yourdomain.nl"}'
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: Default settings for "Configuration for client"

Beitrag von d.oertel »

Hi,

a simple way is to (re)install the product with the -p ask option:

Code: Alles auswählen

opsi-package-manager -p ask -i <product file>
regards

d.oertel


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


michael.nydegger
Beiträge: 4
Registriert: 25 Dez 2013, 12:00

SOLVED: Default settings for "Configuration for client"

Beitrag von michael.nydegger »

Hi together

Thanks for the fast replies. Sorry for my long time for responding. We paused the OPSI project at our school for a while. No we "replayed". :-)
Thanks to "SisterOfMercy". That worked. This is in the documentaction "opsi-getting-started" in the chapter "4.3.7 Windows Product Key". In my opinion the title is missleading. It should be "Change the default settings of a netboot product".

Now it's running perfectly. I hope this forum article will help other users, which stumbled there. :-)

Greetings from Switzerland
Michael
www.ftsystems.ch
opsi Certified Partner
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Default settings for "Configuration for client"

Beitrag von n.wenselowski »

Hello Michael and everyone that may find this thread,

since opsi 4.0.5 these settings can be changed through the configed. If you go to the depot settings you are now greeted by a new tab where you can edit the product defaults.


With kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten