forked from Puppet-Finland/puppet-bacula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfd.pp
35 lines (30 loc) · 1.01 KB
/
fd.pp
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
30
31
32
33
34
35
# This manifest is only used by Vagrant
$email = 'root@localhost'
if $::osfamily == 'RedHat' {
include ::epel
}
class { '::monit':
email => $email,
}
# Ensure that Puppet certificate managements works - these code paths are not
# exercised when using "puppet apply".
$ssl_dir = '/etc/puppetlabs/puppet/ssl'
file { ["${ssl_dir}/certs/ca.pem", "${ssl_dir}/certs/${::fqdn}.pem", "${ssl_dir}/private_keys/${::fqdn}.pem" ]:
ensure => 'present',
}
include ::bacula::common
include ::bacula::puppetcerts
# Ensure that Bacula Filedaemon works
class { '::bacula::filedaemon':
status => 'present',
manage_packetfilter => true,
manage_monit => true,
use_puppet_certs => false,
tls_enable => false,
director_address_ipv4 => '192.168.138.200',
pwd_for_director => 'director',
pwd_for_monitor => 'monitor',
backup_files => [ '/tmp/modules' ],
messages => 'AllButInformational',
monitor_email => $email,
}