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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.