From b6432bfbb246667d3066cd794795f2b99488d67b Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 7 Dec 2010 02:40:27 +0000 Subject: - create the database and the user in postgresql database for epoll --- modules/epoll/manifests/init.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules') diff --git a/modules/epoll/manifests/init.pp b/modules/epoll/manifests/init.pp index 3fb51e3f..e32990c9 100644 --- a/modules/epoll/manifests/init.pp +++ b/modules/epoll/manifests/init.pp @@ -15,6 +15,11 @@ class epoll { 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 @@ class epoll { mode => 640, content => template("epoll/epoll.yml") } + + @@postgresql::database { 'epoll': + description => "Epoll database", + user => "epoll", + require => Postgresql::User['epoll'] + } + } -- cgit v1.2.1