]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Add per-client config
authorTollef Fog Heen <tfheen@err.no>
Sat, 16 Jun 2012 09:19:58 +0000 (11:19 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 16 Jun 2012 09:19:58 +0000 (11:19 +0200)
modules/bacula/templates/per-client.conf.erb [new file with mode: 0644]

diff --git a/modules/bacula/templates/per-client.conf.erb b/modules/bacula/templates/per-client.conf.erb
new file mode 100644 (file)
index 0000000..215923c
--- /dev/null
@@ -0,0 +1,35 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.HIDDEN.de/srv/puppet.HIDDEN.de/git/
+##
+#  For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
+
+Job {
+  Name = "Backup <%= client %>"
+  JobDefs = "Standardbackup"
+  Client = <%= bacula_client_name %>
+}
+
+Job {
+  Name = "Restore <%= client %>"
+  Type = Restore
+  Client= <%= bacula_client_name %>
+  FileSet = "Standard Set"
+  Storage = <%= bacula_filestor_name %>
+  Pool = <%= bacula_pool_name %>
+  Differential Backup Pool = <%= bacula_pool_name %>diff
+  Incremental Backup Pool = <%= bacula_pool_name %>inc
+  Messages = Standard
+  Where = /var/tmp/bacula-restores
+}
+
+# Client (File Services) to backup
+Client {
+  Name = <%= bacula_client_name %>
+  FDPort = <%= bacula_client_port %>
+  Catalog = MyCatalog
+  Password = "<%= bacula_client_secret %>"
+  File Retention = 30 days            # 30 days
+  Job Retention = 6 months            # six months
+  AutoPrune = yes                     # Prune expired Jobs/Files
+}