Changeset 1099 for opsi/products/bacula


Ignore:
Timestamp:
Sep 21, 2012, 4:52:27 PM (12 years ago)
Author:
joergs
Message:

5.2.10-5

Location:
opsi/products/bacula
Files:
2 edited

Legend:

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

    r1098 r1099  
    2424DefVar $LicensePool$
    2525DefVar $INST_SystemType$
     26DefVar $INST_NTVersion$
    2627DefVar $INST_architecture$
    2728
     
    3536
    3637
    37 Set $INST_SystemType$ = GetSystemType
     38Set $INST_SystemType$   = GetSystemType
     39set $INST_NTVersion$    = GetMsVersionInfo
    3840set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
    3941
     42set $catalog$ = GetProductProperty( "catalog", "MyCatalog" )
    4043set $filedaemon_full_name$ = GetProductProperty( "filedaemon_full_name", "" )
    4144set $filedaemon_full_password$ = GetProductProperty( "filedaemon_full_password", "filedaemon_full_password" )
     
    127130;Patches_bacula_conf $InstallDir$+"\bacula-fd.conf"
    128131DosBatch_bacula-fd.conf
     132DosBatch_bconsole.conf
     133DosBatch_bat.conf
     134DosBatch_tray_monitor.conf
     135
     136if ($INST_NTVersion$ >= "6.0")
     137        DosShell_open_firewall_nt6
     138else
     139        DosShell_open_firewall
     140endif
     141
     142; start FD immediatly, not only after reboot
     143DosBatch_start_bacula-fd
    129144
    130145;
     
    154169echo #
    155170echo FileDaemon {                            # this is me
    156 echo   Name = $filedaemon_full_name$
    157 echo   FDport = 9102                # where we listen for the director
    158 echo   WorkingDirectory = "$InstallDirOpsi$\\working"
    159 echo   Pid Directory = "$InstallDirOpsi$\\working"
    160 echo   Plugin Directory = "$InstallDirOpsi$\\plugins"
     171echo   Name                    = "$filedaemon_full_name$"
     172echo   FDport                  = 9102                # where we listen for the director
     173echo   WorkingDirectory        = "$InstallDirOpsi$\\working"
     174echo   Pid Directory           = "$InstallDirOpsi$\\working"
     175echo   Plugin Directory        = "$InstallDirOpsi$\\plugins"
    161176echo   Maximum Concurrent Jobs = 10
    162177echo }
     
    166181echo #
    167182echo Director {
    168 echo   Name     = $director_name$
     183echo   Name     = "$director_name$"
    169184echo   Password = "$filedaemon_full_password$"
    170185echo }
     
    175190echo #
    176191echo Director {
    177 echo   Name     = $filedaemon_monitor_name$
     192echo   Name     = "$filedaemon_monitor_name$"
    178193echo   Password = "$filedaemon_monitor_password$"
    179194echo   Monitor  = yes
     
    186201echo }
    187202) > $InstallDir$/bacula-fd.conf
     203
     204
     205
     206[DosBatch_bconsole.conf]
     207(
     208echo #
     209echo # managed by opsi
     210echo #
     211echo Director {
     212echo   Name        = "$director_name$"
     213echo   Address     = "$director_address$"
     214echo   DIRport     = 9101
     215echo   Password    = "$director_password$"
     216echo }
     217) > $InstallDir$/bconsole.conf
     218
     219
     220
     221[DosBatch_bat.conf]
     222(
     223echo #
     224echo # managed by opsi
     225echo #
     226echo Director {
     227echo   Name        = "$director_name$"
     228echo   Address     = "$director_address$"
     229echo   DIRport     = 9101
     230echo   Password    = "$director_password$"
     231echo }
     232) > $InstallDir$/bat.conf
     233
     234
     235
     236[DosBatch_tray-monitor.conf]
     237(
     238echo #
     239echo # managed by opsi
     240echo #
     241echo Monitor {
     242echo   Name            = "$filedaemon_monitor_name$"
     243echo   Password        = "$filedaemon_monitor_password$"
     244echo   RefreshInterval = 30 seconds
     245echo }
     246echo
     247echo Client {
     248echo   Name            = "$filedaemon_full_name$"
     249echo   Address         = localhost
     250echo   FDport          = 9102
     251echo   Password        = "$filedaemon_monitor_password$"
     252echo }
     253) > $InstallDir$/tray-monitor.conf
     254
     255
     256
     257[DosBatch_open_firewall]
     258netsh firewall add portopening protocol=TCP port=9102 name=bacula-fd-port
     259
     260[DosBatch_open_firewall_nt6]
     261netsh advfirewall firewall add rule name="bacula-fd-port" dir=in action=allow protocol=TCP localport=9102
     262
     263[DosBatch_start_bacula-fd]
     264net start bacula-fd
    188265
    189266[opsiservicecall_set_product_property_filedaemon_full_name]
  • opsi/products/bacula/OPSI/control

    r1029 r1099  
    11[Package]
    2 version: 3
     2version: 5
    33depends:
    44incremental: False
     
    2424[ProductProperty]
    2525type: unicode
     26name: catalog
     27multivalue: False
     28editable: True
     29description: only relevant for bacula director configuration
     30default: ["MyCatalog"]
     31
     32[ProductProperty]
     33type: unicode
    2634name: filedaemon_full_name
    2735multivalue: False
     
    104112
    105113[Changelog]
     11420120921, 5.2.10-5, Joerg Steffens
     115  * create config files bat.conf, bconsole.conf and tray-monitor.conf
     116  * add property "catalog"
     117  * configure firewall for bacula fd
     118  * start bacula fd immediatly, not only after reboot
     119
     12020120921, 5.2.10-4, Joerg Steffens
     121  * write paths with \\ instead of \ (required by Bacula)
     122
    10612320120710, 5.2.10-3, Joerg Steffens
    107124  * write properties filedaemon_full_name and filedaemon_monitor_name back to opsi server
Note: See TracChangeset for help on using the changeset viewer.