aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mga-mirrors')
-rw-r--r--modules/mga-mirrors/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp
index b41ed53c..4b55904f 100644
--- a/modules/mga-mirrors/manifests/init.pp
+++ b/modules/mga-mirrors/manifests/init.pp
@@ -12,6 +12,16 @@ class mga-mirrors {
}
$pgsql_password = extlookup("mga_mirror_pgsql",'x')
+
+ @@postgresql::user { 'mirrors':
+ password => $pgsql_password,
+ }
+
+ @@postgresql::database { 'mirrors':
+ description => "Mirrors database",
+ user => "mirrors",
+ require => Postgresql::User['mirrors']
+ }
file { "mga-mirrors.ini":
path => "/etc/mga-mirrors.ini",