[Mageia-sysadm] [529] - create sympa user & db

root at mageia.org root at mageia.org
Tue Dec 7 03:40:28 CET 2010


Revision: 529
Author:   misc
Date:     2010-12-07 03:40:28 +0100 (Tue, 07 Dec 2010)
Log Message:
-----------
- create sympa user & db

Modified Paths:
--------------
    puppet/modules/sympa/manifests/init.pp

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"]
+    }
+
+
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101207/d69039c3/attachment.html>


More information about the Mageia-sysadm mailing list