Puppet Class: bacula::sd::config
- Inherits:
- bacula::sd
- Defined in:
- manifests/sd/config.pp
Overview
concat bacula-sd 00 base config storage daemin 10 autocharger 11 devices
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'manifests/sd/config.pp', line 6
class bacula::sd::config inherits bacula::sd {
if($bacula::params::systemd)
{
systemd::service { 'bacula-sd':
execstart => inline_template('/usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape<% if defined?(@debug_level) %> -d <%= @debug_level %><% end %>'),
pid_file => "/var/run/bacula/bacula-sd.${bacula::sd::port}.pid",
type => 'forking',
timeoutstartsec => '1m',
}
}
concat { '/etc/bacula/bacula-sd.conf':
ensure => 'present',
owner => 'root',
group => 'root',
mode => '0640',
}
concat::fragment{ '/etc/bacula/bacula-sd.conf base conf':
target => '/etc/bacula/bacula-sd.conf',
order => '00',
content => template("${module_name}/sd/baculasd.erb"),
}
if($bacula::sd::director_name!=undef)
{
bacula::sd::director { $bacula::sd::director_name:
password => $bacula::sd::director_password,
description => 'default director',
}
}
}
|