浏览代码

bareos-fd: split up config

Maximilian Ronniger 7 年之前
父节点
当前提交
75731b1416

+ 3 - 47
bareos-fd.conf

@@ -1,51 +1,7 @@
 #
 # Default Bareos File Daemon Configuration file
 #
-#  For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
-#
-# You have to add this client to the Bareos director (bareos-dir.conf, Client resource).
-# In this file (bareos-fd.conf) you have to
-# configure the Bareos director name and
-# set the corresponding password for this client.
-#
-
-FileDaemon {                          # definition of myself
-  Name = lto7-fd
-  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 (*-fd.so) from the "Plugin Directory".
-  #
-  # Plugin Directory = /usr/lib/bareos/plugins
-  # Plugin Names = ""
-
-
-  # if compatible is set to yes, we are compatible with bacula
-  # if set to no, new bareos features are enabled which is the default
-  # compatible = yes
-}
-
-#
-# List Directors who are permitted to contact this File daemon
-#
-Director {
-  Name = lto7-dir
-  Password = "4cpnIZAfirCJcF05x0y0iYo4NXz4WsnHoYojuUxs75/6"
-}
-
-#
-# Restricted Director, used by tray-monitor to get the
-#   status of the file daemon
-#
-Director {
-  Name = lto7-mon
-  Password = "i/tJqWTVyQBW1iqKHx4xmfqrm3Tt6Py9f+V0WwSPfqqa"
-  Monitor = yes
-}
 
-# Send all messages except skipped files back to Director
-Messages {
-  Name = Standard
-  director = lto7-dir = all, !skipped, !restored
-}
+@/etc/bareos/bareos-fd.d/client/*.conf
+@/etc/bareos/bareos-fd.d/director/*.conf
+@/etc/bareos/bareos-fd.d/messages/*.conf

+ 16 - 0
bareos-fd.d/client/myself.conf

@@ -0,0 +1,16 @@
+# Client used to be FileDaemon in previous version
+Client {
+  Name = lto7-fd
+  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 (*-fd.so) from the "Plugin Directory".
+  #
+  # Plugin Directory = /usr/lib/bareos/plugins
+  # Plugin Names = ""
+
+  # if compatible is set to yes, we are compatible with bacula
+  # if set to no, new bareos features are enabled which is the default
+  # compatible = yes
+}

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

@@ -0,0 +1,5 @@
+Director {
+  Name = bareos-dir
+  Password = "4cpnIZAfirCJcF05x0y0iYo4NXz4WsnHoYojuUxs75"
+  Description = "Allow the configured Director to access this file daemon."
+}

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

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

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

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