]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Adding sympa_database_host
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 25 Aug 2010 23:39:35 +0000 (20:39 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 25 Aug 2010 23:39:35 +0000 (20:39 -0300)
manifests/system.pp
templates/sympa/sympa.conf.erb

index 4b3b3b77a019a33a96cdfb0b2e8c2ee8e67e4d0c..d2261915f100f562d7aca57d547d0c292dd710eb 100644 (file)
@@ -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" }
       }
index 7708bd9409086794fd4cb6ae383823cf4efbd088..4e3eff6a5fd1dc88d87be72f4a3b8d83a47eb3e4 100644 (file)
@@ -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 %>