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