Seite 1 von 1

Default settings for "Configuration for client"

Verfasst: 25 Dez 2013, 12:48
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

Re: Default settings for "Configuration for client"

Verfasst: 25 Dez 2013, 17:25
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"}'

Re: Default settings for "Configuration for client"

Verfasst: 01 Jan 2014, 16:57
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

SOLVED: Default settings for "Configuration for client"

Verfasst: 05 Feb 2015, 10:53
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

Re: Default settings for "Configuration for client"

Verfasst: 09 Feb 2015, 09:39
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