Browse Source

bareos-sd: split up config

Maximilian Ronniger 7 years ago
parent
commit
70d6aaef87

+ 4 - 69
bareos-sd.conf

@@ -1,73 +1,8 @@
 #
 # Default Bareos Storage Daemon Configuration file
 #
-#  For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
-#
-# You may need to change the name of your tape drive
-#   on the "Archive Device" directive in the Device
-#   resource.  If you change the Name and/or the
-#   "Media Type" in the Device resource, please ensure
-#   that the Bareos director has corresponding changes.
-#
-
-Storage {                             # definition of myself
-  Name = lto7-sd
-  Maximum Concurrent Jobs = 20
-
-  # remove comment from "Plugin Directory" to load plugins from specified directory.
-  # if "Plugin Names" is defined, only the specified plugins will be loaded,
-  # otherwise all storage plugins (*-sd.so) from the "Plugin Directory".
-  #
-  # Plugin Directory = /usr/lib/bareos/plugins
-  # Plugin Names = ""
-}
-
-#
-# List Directors who are permitted to contact Storage daemon
-#
-Director {
-  Name = lto7-dir
-  Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
-}
-
-#
-# Restricted Director, used by tray-monitor to get the
-#   status of the storage daemon
-#
-Director {
-  Name = lto7-mon
-  Password = "N2RQeE66evi54j+BY0CE5M4g1qsI8v3EC+Yuq26Z+GXT"
-  Monitor = yes
-}
 
-#
-# Devices supported by this Storage daemon
-# To connect, the Director's bareos-dir.conf must have the same Name and MediaType.
-#
-Device {
-  Name = FileStorage
-  Media Type = File
-  Archive Device = /var/lib/bareos/storage
-  LabelMedia = yes;                   # lets Bareos label unlabeled media
-  Random Access = yes;
-  AutomaticMount = yes;               # when device opened, read it
-  RemovableMedia = no;
-  AlwaysOpen = no;
-}
-
-#
-# include additional configuration files, if required
-#
-
-# eg.
-@/etc/bareos/bareos-sd.d/lto7.conf
-
-
-#
-# Send all messages to the Director,
-# mount messages also are sent to the email address
-#
-Messages {
-  Name = Standard
-  director = lto7-dir = all
-}
+@/etc/bareos/bareos-sd.d/storage/bareos-sd.conf
+@/etc/bareos/bareos-sd.d/director/*.conf
+@/etc/bareos/bareos-sd.d/device/*.conf
+@/etc/bareos/bareos-sd.d/messages/*.conf

+ 11 - 0
bareos-sd.d/device/FileStorage.conf

@@ -0,0 +1,11 @@
+Device {
+  Name = FileStorage
+  Media Type = File
+  Archive Device = /var/lib/bareos/storage
+  LabelMedia = yes;                   # lets Bareos label unlabeled media
+  Random Access = yes;
+  AutomaticMount = yes;               # when device opened, read it
+  RemovableMedia = no;
+  AlwaysOpen = no;
+  Description = "File device. A connecting Director must have the same Name and MediaType."
+}

+ 0 - 0
bareos-sd.d/lto7.conf → bareos-sd.d/device/lto7.conf


+ 5 - 0
bareos-sd.d/director/bareos-dir.conf

@@ -0,0 +1,5 @@
+Director {
+  Name = bareos-dir
+  Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
+  Description = "Director, who is permitted to contact this storage daemon."
+}

+ 6 - 0
bareos-sd.d/director/bareos-mon.conf

@@ -0,0 +1,6 @@
+Director {
+  Name = bareos-mon
+  Password = "N2RQeE66evi54j+BY0CE5M4g1qsI8v3EC+Yuq26Z+GXT"
+  Monitor = yes
+  Description = "Restricted Director, used by tray-monitor to get the status of this storage daemon."
+}

+ 5 - 0
bareos-sd.d/messages/Standard.conf

@@ -0,0 +1,5 @@
+Messages {
+  Name = Standard
+  Director = bareos-dir = all
+  Description = "Send all messages to the Director."
+}

+ 11 - 0
bareos-sd.d/storage/bareos-sd.conf

@@ -0,0 +1,11 @@
+Storage {
+  Name = bareos-sd
+  Maximum Concurrent Jobs = 20
+
+  # remove comment from "Plugin Directory" to load plugins from specified directory.
+  # if "Plugin Names" is defined, only the specified plugins will be loaded,
+  # otherwise all storage plugins (*-sd.so) from the "Plugin Directory".
+  #
+  # Plugin Directory = /usr/lib/bareos/plugins
+  # Plugin Names = ""
+}