[Mageia-sysadm] [528] - create the database and the user in postgresql database for epoll

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


Revision: 528
Author:   misc
Date:     2010-12-07 03:40:27 +0100 (Tue, 07 Dec 2010)
Log Message:
-----------
- create the database and the user in postgresql database for epoll

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

Modified: puppet/modules/epoll/manifests/init.pp
===================================================================
--- puppet/modules/epoll/manifests/init.pp	2010-12-07 02:40:26 UTC (rev 527)
+++ puppet/modules/epoll/manifests/init.pp	2010-12-07 02:40:27 UTC (rev 528)
@@ -15,6 +15,11 @@
     apache::vhost_redirect_ssl { $vhost: }
      
     $password = extlookup("epoll_password",'x')
+
+    @@postgresql::user { 'epoll':
+        password => $password,
+    }
+
  
     file { "epoll.yml": 
         path => "/etc/epoll.yml",    
@@ -24,4 +29,11 @@
         mode => 640,
         content => template("epoll/epoll.yml")
     }
+
+    @@postgresql::database { 'epoll':
+        description => "Epoll database",
+        user => "epoll",
+        require => Postgresql::User['epoll']
+    }
+
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101207/b0950bfc/attachment.html>


More information about the Mageia-sysadm mailing list