summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/system.pp4
-rw-r--r--templates/sympa/sympa.conf.erb2
2 files changed, 5 insertions, 1 deletions
diff --git a/manifests/system.pp b/manifests/system.pp
index 4b3b3b7..d226191 100644
--- a/manifests/system.pp
+++ b/manifests/system.pp
@@ -62,6 +62,10 @@ class mail::system {
'': { $sympa_database_name= "sympa" }
}
+ case $sympa_database_host {
+ '': { $sympa_database_host = "localhost" }
+ }
+
case $sympa_subdomain {
'': { $sympa_subdomain = "lists" }
}
diff --git a/templates/sympa/sympa.conf.erb b/templates/sympa/sympa.conf.erb
index 7708bd9..4e3eff6 100644
--- a/templates/sympa/sympa.conf.erb
+++ b/templates/sympa/sympa.conf.erb
@@ -140,7 +140,7 @@ db_type mysql
db_name <%= sympa_database_name %>
## The host hosting your sympa database
-#db_host localhost
+db_host <%= sympa_database_host %>
## Database user for connexion
db_user <%= sympa_database_name %>