aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']
+ }
+
}