Make all the settings parameters. the (unused) bacula_fd_port from hiera is now...
[mirror/dsa-puppet.git] / modules / bacula / manifests / init.pp
1 class bacula (
2   String  $bacula_operator_email      = 'bacula-reports@admin.debian.org',
3   String  $bacula_director_name       = 'debian-dir',
4   String  $bacula_storage_name        = 'debian-sd',
5   String  $bacula_client_name         = "${::fqdn}-fd",
6   String  $bacula_monitor_name        = 'debian-mon',
7   String  $bacula_filestor_name       = 'File',
8   String  $bacula_filestor_device     = 'FileStorage',
9   String  $bacula_pool_name           = 'debian',
10
11   # use IP address for ferm.
12   String  $bacula_director_ip_addrs   = '5.153.231.19 2001:41c8:1000:21::21:19',
13   String  $bacula_director_address    = 'dinis.debian.org',
14   Integer $bacula_director_port       = 9101,
15   String  $bacula_storage_address     = 'storace.debian.org',
16   Integer $bacula_storage_port        = 9103,
17   Integer $bacula_client_port         = 9102,
18   String  $bacula_db_address          = 'danzi.debian.org',
19   Integer $bacula_db_port             = 5433,
20
21   String  $bacula_backup_path         = '/srv/bacula',
22
23   String  $bacula_director_secret     = hkdf('/etc/puppet/secret', "bacula-dir-${::hostname}"),
24   String  $bacula_db_secret           = hkdf('/etc/puppet/secret', "bacula-db-${::hostname}"),
25   String  $bacula_storage_secret      = hkdf('/etc/puppet/secret', "bacula-sd-${bacula_storage_name}"),
26   String  $bacula_client_secret       = hkdf('/etc/puppet/secret', "bacula-fd-${::fqdn}"),
27   String  $bacula_monitor_secret      = hkdf('/etc/puppet/secret', "bacula-monitor-${bacula_director_name}"),
28
29   String  $bacula_ca_path             = '/etc/ssl/debian/certs/ca.crt',
30   String  $bacula_ssl_client_cert     = '/etc/ssl/debian/certs/thishost.crt',
31   String  $bacula_ssl_client_key      = '/etc/ssl/private/thishost.key',
32   String  $bacula_ssl_server_cert     = '/etc/ssl/debian/certs/thishost-server.crt',
33   String  $bacula_ssl_server_key      = '/etc/ssl/private/thishost-server.key',
34
35   String  $bacula_dsa_client_list     = '/etc/bacula/dsa-clients',
36   String  $tag_bacula_dsa_client_list = 'bacula::dsa::clientlist',
37 ) {
38   file { '/usr/local/sbin/bacula-idle-restart':
39     mode    => '0555',
40     content  => template('bacula/bacula-idle-restart.erb'),
41   }
42 }