aboutsummaryrefslogtreecommitdiffstats
path: root/modules/epoll
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-07 02:40:27 +0000
committerMichael Scherer <misc@mageia.org>2010-12-07 02:40:27 +0000
commitb6432bfbb246667d3066cd794795f2b99488d67b (patch)
tree696ae24944f636d958ccb8256e9f000b8da25c63 /modules/epoll
parenta25424114904e5079121d988bce5f8420c5c1e8b (diff)
downloadpuppet-b6432bfbb246667d3066cd794795f2b99488d67b.tar
puppet-b6432bfbb246667d3066cd794795f2b99488d67b.tar.gz
puppet-b6432bfbb246667d3066cd794795f2b99488d67b.tar.bz2
puppet-b6432bfbb246667d3066cd794795f2b99488d67b.tar.xz
puppet-b6432bfbb246667d3066cd794795f2b99488d67b.zip
- create the database and the user in postgresql database for epoll
Diffstat (limited to 'modules/epoll')
-rw-r--r--modules/epoll/manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
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']
+ }
+
}