Changeset 1029 for opsi/products/bacula


Ignore:
Timestamp:
Jul 10, 2012, 7:00:00 PM (12 years ago)
Author:
joergs
Message:

5.2.10-3: write properties filedaemon_full_name and filedaemon_monitor_name back to opsi server, added properties fileset and jobdefs

Location:
opsi/products/bacula
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • opsi/products/bacula/CLIENT_DATA/setup3264.ins

    r1023 r1029  
    2525DefVar $INST_architecture$
    2626
    27 DefVar $filedaemon_name$
    2827DefVar $filedaemon_full_name$
    2928DefVar $filedaemon_full_password$
     
    3837set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
    3938
    40 set $filedaemon_name$ = GetProductProperty( "filedaemon_name", "" )
     39set $filedaemon_full_name$ = GetProductProperty( "filedaemon_full_name", "" )
    4140set $filedaemon_full_password$ = GetProductProperty( "filedaemon_full_password", "filedaemon_full_password" )
     41set $filedaemon_monitor_name$ = GetProductProperty( "filedaemon_monitor_name", "" )
    4242set $filedaemon_monitor_password$ = GetProductProperty( "filedaemon_monitor_password", "filedaemon_monitor_password" )
    4343set $director_name$ = GetProductProperty( "director_name", "director_name" )
     
    8585comment "installing"
    8686
    87 if $filedaemon_name$ = ""
    88   set $filedaemon_full_name$    = "%PCname%-fd"
    89   set $filedaemon_monitor_name$ = "%PCname%-mon"
    90 else
    91   set $filedaemon_full_name$    = "$filedaemon_name$-fd"
    92   set $filedaemon_monitor_name$ = "$filedaemon_name$-mon"
     87if $filedaemon_full_name$ = ""
     88    set $filedaemon_full_name$    = "%HostID%-fd"
     89    opsiservicecall_set_product_property_filedaemon_full_name
     90endif
     91
     92if $filedaemon_monitor_name$ = ""
     93    set $filedaemon_monitor_name$ = "%HostID%-mon"
     94    opsiservicecall_set_product_property_filedaemon_monitor_name
    9395endif
    9496
     
    181183) >> $InstallDir$/bacula-fd.conf
    182184
     185[opsiservicecall_set_product_property_filedaemon_full_name]
     186"method": "setProductProperty",
     187"params": [
     188        'bacula',
     189        'filedaemon_full_name',
     190        '$filedaemon_full_name$',
     191        '%HostID%'
     192]
     193
     194[opsiservicecall_set_product_property_filedaemon_monitor_name]
     195"method": "setProductProperty",
     196"params": [
     197        'bacula',
     198        'filedaemon_monitor_name',
     199        '$filedaemon_monitor_name$',
     200        '%HostID%'
     201]
    183202
    184203
  • opsi/products/bacula/OPSI/control

    r1025 r1029  
    11[Package]
    2 version: 2
     2version: 3
    33depends:
    44incremental: False
     
    2424[ProductProperty]
    2525type: unicode
    26 name: filedaemon_name
    27 multivalue: False
    28 editable: True
    29 description: filedaemon bacula name. Leave empty HOSTNAME-fd
     26name: filedaemon_full_name
     27multivalue: False
     28editable: True
     29description: filedaemon bacula name. Leave empty for HostID-fd
    3030default: [""]
    3131
     
    4040[ProductProperty]
    4141type: unicode
     42name: filedaemon_monitor_name
     43multivalue: False
     44editable: True
     45description: filedaemon bacula name. Leave empty for HostID-mon
     46default: [""]
     47
     48[ProductProperty]
     49type: unicode
    4250name: filedaemon_monitor_password
    4351multivalue: False
     
    6977description: access to Bacula director for bconsole and bat
    7078default: ["director_password"]
     79
     80[ProductProperty]
     81type: unicode
     82name: fileset
     83multivalue: False
     84editable: True
     85description: only relevant for bacula director configuration
     86default: [""]
     87
     88[ProductProperty]
     89type: unicode
     90name: jobdefs
     91multivalue: False
     92editable: True
     93description: only relevant for bacula director configuration
     94default: [""]
    7195
    7296[ProductProperty]
     
    80104
    81105[Changelog]
     10620120710, 5.2.10-3, Joerg Steffens
     107  * write properties filedaemon_full_name and filedaemon_monitor_name back to opsi server
     108  * added properties fileset and jobdefs
     109
    8211020120704, 5.2.10-2, Joerg Steffens
    83111  * uninstall
Note: See TracChangeset for help on using the changeset viewer.