forked from voxpupuli/puppet-bacula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbacula-dir-header.epp
29 lines (28 loc) · 1.14 KB
/
bacula-dir-header.epp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Director { # define myself
Name = <%= $clientcert %>-dir
<% unless $bacula::director::listen_address.empty { -%>
DirAddresses = {
<%= epp('bacula/_listen.epp', { listen_addresses => $bacula::director::listen_address, port => $bacula::director::port }) %>
}
<% } -%>
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = <%= $bacula::director::homedir %>
Pid Directory = <%= $bacula::director::rundir %>
Maximum Concurrent Jobs = <%= $bacula::director::max_concurrent_jobs %>
Password = "<%= $bacula::director::password %>" # Console password
Messages = Daemon
<%= epp('bacula/_tls_server.epp') %>
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = "<%= $bacula::director::db_name %>";
dbuser = "<%= $bacula::director::db_user %>";
dbpassword = "<%= $bacula::director::db_pw %>";
<% if $bacula::director::db_address { -%>
DB Address = <%= $bacula::director::db_address %>
<% } -%>
<% if $bacula::director::db_port { -%>
DB Port = <%= $bacula::director::db_port %>
<% } -%>
}