Revision
529
Author
misc
Date
2010-12-07 03:40:28 +0100 (Tue, 07 Dec 2010)

Log Message

- create sympa user & db

Modified Paths

Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp	2010-12-07 02:40:27 UTC (rev 528)
+++ puppet/modules/sympa/manifests/init.pp	2010-12-07 02:40:28 UTC (rev 529)
@@ -9,6 +9,10 @@
     $password = extlookup("sympa_password",'x')
     $ldappass = extlookup("sympa_ldap",'x')
 
+    @@postgresql::user { 'sympa':
+        password => $password,
+    }
+
     file { '/etc/sympa/sympa.conf':
         ensure => present,
 	# should be cleaner to have it root owned, but puppet do not support acl
@@ -33,8 +37,16 @@
 	webapp_file => "sympa/webapp_sympa.conf",
     }
 
-   apache::vhost_other_app { "ml.$domain":
+    apache::vhost_other_app { "ml.$domain":
         vhost_file => "sympa/vhost_ml.conf",
-   }
+    }
+
+    @@postgresql::database { 'sympa':
+        description => "Sympa database",
+        user => "sympa",
+        require => Postgresql::User["sympa"]
+    }
+
+
 }