X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Finit.pp;h=d57280de0d22831c9edc98f39318136c95bc4dba;hb=468d00478388aea379f1f8dbf9f6e8da8df67afb;hp=88448fc32a1cb290f6b0c401e1b042f479b05ed2;hpb=6f31e7820de17d343bbb522e240c9a90438e21df;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/init.pp b/modules/bacula/manifests/init.pp index 88448fc32..d57280de0 100644 --- a/modules/bacula/manifests/init.pp +++ b/modules/bacula/manifests/init.pp @@ -1 +1,39 @@ -class bacula {} +class bacula { + + $bacula_operator_email = 'debian-admin@debian.org' + + $bacula_director_name = 'debian-dir' + $bacula_storage_name = 'debian-sd' + $bacula_client_name = "${::fqdn}-fd" + $bacula_monitor_name = 'debian-mon' + $bacula_filestor_name = 'File' + $bacula_filestor_device = 'FileStorage' + $bacula_pool_name = 'debian' + + $bacula_director_address = 'dinis.debian.org' + $bacula_director_port = 9101 + $bacula_storage_address = 'beethoven.debian.org' + $bacula_storage_port = 9103 + $bacula_client_port = 9102 + $bacula_db_address = 'danzi.debian.org' + $bacula_db_port = 5433 + + $bacula_backup_path = '/srv/bacula' + + $bacula_director_secret = hmac('/etc/puppet/secret', "bacula-dir-${::hostname}") + $bacula_db_secret = hmac('/etc/puppet/secret', "bacula-db-${::hostname}") + $bacula_storage_secret = hmac('/etc/puppet/secret', "bacula-sd-${bacula_storage_name}") + $bacula_client_secret = hmac('/etc/puppet/secret', "bacula-fd-${::fqdn}") + $bacula_monitor_secret = hmac('/etc/puppet/secret', "bacula-monitor-${bacula_director_name}") + + package { 'bacula-console': + ensure => installed; + } + + file { '/etc/bacula/bconsole.conf': + content => template('bacula/bconsole.conf.erb'), + mode => '0640', + group => bacula, + require => Package['bacula-console'] + } +}