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

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']
+    }
+
 }