From 783987455c96185443a8365c4f21b79d75240124 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 16 Jun 2012 11:54:45 +0200 Subject: [PATCH] Put db port and address into configuration too --- modules/bacula/manifests/bacula.pp | 3 +++ modules/bacula/templates/bacula-dir.conf.erb | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/bacula/manifests/bacula.pp b/modules/bacula/manifests/bacula.pp index 78ec06209..3cf9b6742 100644 --- a/modules/bacula/manifests/bacula.pp +++ b/modules/bacula/manifests/bacula.pp @@ -15,10 +15,13 @@ class bacula { $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/backup.debian.org/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-$hostname") $bacula_client_secret = hmac("/etc/puppet/secret", "bacula-fd-$hostname") $bacula_monitor_secret = hmac("/etc/puppet/secret", "bacula-monitor-$hostname") diff --git a/modules/bacula/templates/bacula-dir.conf.erb b/modules/bacula/templates/bacula-dir.conf.erb index 9549b25ec..a1444a627 100644 --- a/modules/bacula/templates/bacula-dir.conf.erb +++ b/modules/bacula/templates/bacula-dir.conf.erb @@ -95,7 +95,11 @@ Schedule { ######################################################################## Catalog { Name = MyCatalog - dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "s3kr1t" + dbname = bacula; + DB Address = "<%= bacula_db_address %>"; + DB Port = <%= bacula_db_port %>; + dbuser = "bacula"; + dbpassword = "<%= bacula_db_secret %>" } ######################################################################## -- 2.20.1