Changes between Version 5 and Version 6 of opsi/howto


Ignore:
Timestamp:
Jul 6, 2012, 3:49:01 PM (12 years ago)
Author:
joergs
Comment:

transfered infos from our internal wiki

Legend:

Unmodified
Added
Removed
Modified
  • opsi/howto

    v5 v6  
    44= OPSI Howto =
    55
     6== API ==
    67
    7 == Change Product Properties for all Clients on a Depot Server ==
     8{{{
     9opsi-admin
     10}}}
     11
     12method names start with get or set are compability methods for opsi 3 calls.
     13Opsi 4 method names start with the object type, eg:
     14{{{
     15method host_getIdents
     16method product_getIdents
     17method product_getHashes
     18productOnClient_getObjects
     19}}}
     20
     21== Product Properties ==
     22
     23Packages have defined default values for there properties.
     24
     25=== Client Product Properties ===
     26
     27Product properties can be set individually on every client using the Opsi-Gui.
     28
     29
     30=== Depot Product Properties  ===
     31
     32A Depot Server can have its own set of product properties.
     33When a new Opsi is added to a depot server, these depot values are also used for the client,
     34if the client does not overwrite these properties.
     35
     36The depot defaults can be defined when installing a new package:
     37{{{
     38opsi-package-manager -i -p ask PAKET.opsi
     39}}}
     40
     41Additionally, these properties can be quering and modified using the Opsi-JSON-RPC API calls.
     42
     43Example:
     44
     45
     46{{{
     47# query the properties of the product "winxppro" on the server DEPOT-SERVER-ID
     48opsi-admin -d method getProductProperties_hash winxppro DEPOT-SERVER-ID
     49
     50# change the property "productkey" of the product winxppro on the server DEPOT-SERVER-ID
     51opsi-admin -d method setProductProperty winxppro "productkey" "ABCDE-FGHIJ-KLMNO-QRTUV-WXYZ1" DEPOT-SERVER-ID
     52}}}
     53
     54==== Change Product Properties for all Clients on a Depot Server ====
    855
    956{{{
     
    1360  objectId:: Depot-Server or Client-Name
    1461
     62
     63=== Global Defaults ===
     64
     65Global defaults can be changed using the following API calls:
     66
     67{{{
     68opsi-admin -d method productProperty_getObjects [] '{"productId":"winxppro"}' > /tmp/winxppro_config.json
     69
     70vi /tmp/winxppro_config.json
     71# change possible values and defaults here (eg.: orgname="dass IT GmbH"
     72
     73opsi-admin -d method productProperty_updateObjects < /tmp/winxppro_config.json
     74
     75# check the result
     76opsi-admin -d method getProductProperties_hash winxppro
     77}}}
     78
     79
     80
     81
    1582= Bitlocker and Reinstallation =
    1683