X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=bacula-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=4b466df67a15997dfa2b447f607f1e5d527fbf6d;hp=b1bdf4684e4e077a195a10a9ff2e44be6f62232e;hb=2018f98e730c9f88bfd5649abc7ad14d70f029cd;hpb=841b9eafdaa85f0bcad709f076e5d59ca97774ef diff --git a/debian/postinst b/debian/postinst index b1bdf46..4b466df 100644 --- a/debian/postinst +++ b/debian/postinst @@ -247,29 +247,39 @@ EOF # Requested by $CONTACT on $DATE Client { Name = $HOST-fd + @/etc/bacula/include/client-debian-default.conf Address = $IP Password = "$PASS_FD" # password for bacula-fd(8) - @/etc/bacula/include/client-debian-default.conf - - TLS Enable = yes - TLS Require = yes TLS CA Certificate File = "/etc/bacula/clients.d/$HOST-fd.pem" - TLS Certificate = "/etc/bacula/bacula.pem" - TLS Key = "/etc/bacula/bacula.key" -} - -Job { - Name = "$HOST" - Client = $HOST-fd - JobDefs = "Job_SysBackup" } Console { Name = $HOST-acl + @/etc/bacula/include/acl-default.conf Password = "$PASS_BCONSOLE" # password for bconsole(8) JobACL = $HOST, RestoreFiles ClientACL = $HOST-fd - @/etc/bacula/include/acl-default.conf +} + +Pool { + Name = $HOST-pool + @/etc/bacula/include/pool-default.conf + Label Format = ${HOST}_ +} + +Storage { + Name = $HOST-stor + @/etc/bacula/include/storage-default.conf + Device = file_$HOST + Media Type = media_$HOST +} + +Job { + Name = "$HOST" + Client = $HOST-fd + JobDefs = "Job_SysBackup" + Pool = $HOST-pool + Storage = $HOST-stor } EOF