2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 # For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
8 ########################################################################
9 # Bacula Director itself #
10 ########################################################################
13 Name = <%= @director_name %>
14 Description = <%= @hostname %> - <%= @domain %> Bacula Director
15 QueryFile = "/etc/bacula/scripts/query.sql"
16 WorkingDirectory = "/var/lib/bacula"
17 PidDirectory = "/run/bacula"
18 Maximum Concurrent Jobs = 20
19 Password = "<%= @director_secret %>"
22 # Always have localhost in, then the configured IP
23 ip = { addr = 127.0.0.1; port = <%= @port_dir %> }
24 ip = { addr = <%= @director_address %>; port = <%= @port_dir %> }
30 TLS Allowed CN = "clientcerts/<%= @director_address %>"
31 <%= scope['bacula::bacula_tls_ca_certificate_file'] %>
32 <%= scope['bacula::bacula_tls_server_certificate'] %>
33 <%= scope['bacula::bacula_tls_server_key'] %>
35 Heartbeat Interval = 60
38 ########################################################################
40 ########################################################################
43 Ignore FileSet Changes = yes
55 File = "\\|/usr/local/sbin/bacula-backup-dirs"
56 # Dont backup directories that contain .nobackup files
57 Exclude Dir Containing = .nobackup
64 File = /home/buildd/build-trees
71 File = /srv/apache-cache/mod_cache_disk
72 File = /var/cache/apache2/mod_cache_disk
75 File = /var/lib/bacula
76 File = /var/lib/munin-async
78 File = /var/log/samhain
80 File = "\\|bash -c 'grep -s -v ^# /etc/bacula/local-exclude || true'"
85 ########################################################################
86 # Generic catalog service #
87 ########################################################################
90 dbname = <%= @db_name %>;
91 dbport = <%= @db_port %>;
92 dbaddress = "<%= @db_address %>";
94 dbsslmode = verify-ca;
95 dbsslca = "<%= @db_sslca %>";
97 dbuser = "<%= @db_user %>";
98 dbpassword = "<%= @db_password %>"
101 ########################################################################
103 ########################################################################
105 Name = <%= @messages_name %>
106 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
107 operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
108 mail = <%= @operator_email %> = all
109 operator = <%= @operator_email %> = mount
110 console = all, !skipped, !saved
112 append = "/var/lib/bacula/log" = all
116 # Message delivery for daemon messages (no job).
119 mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
120 mail = <%= @operator_email %> = all
121 console = all, !skipped, !saved
123 append = "/var/lib/bacula/log" = all
126 ########################################################################
127 # Jobdefinitions with defaults and stuff #
128 ########################################################################
130 Name = "Standardbackup"
133 FileSet = "Standard Set"
135 Messages = <%= @messages_name %>
136 Max Full Interval = 50 days
138 Write Bootstrap = "/var/lib/bacula/%c.bsr"
139 Maximum Concurrent Jobs = 20
140 Client Run After Job = "/usr/local/sbin/postbaculajob -c \"%c\" -d \"%d\" -i \"%i\" -l \"%l\" -n \"%n\" -o /var/log/bacula/client-after.state"
143 ########################################################################
144 # Standard Restore template, to be changed by Console program #
145 # Only one such job is needed for all Jobs/Clients/Storage ... #
146 ########################################################################
148 Name = "RestoreFiles"
150 FileSet = "Standard Set"
151 Client = <%= @some_client_name%>
152 Pool = <%= @some_pool_name %>
153 Messages = <%= @messages_name %>
154 Where = /var/tmp/bacula-restores
158 # Scratch pool definition
164 ########################################################################
165 # And now include all the generated configs #
166 ########################################################################
167 @|"sh -c 'for f in /etc/bacula/conf.d/*.conf ; do echo @${f} ; done'"