aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 12:24:47 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 12:24:47 +0000
commitc0440373d12e164ac12e8f5a50c4b7a0d8d046a2 (patch)
tree1ef8fd51d489b1fd1c426bedfb16eb3c7c63cccd /modules/mga-mirrors
parent75e79d222aeaa7be5c774a4218655c4ba2ffe6ab (diff)
downloadpuppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar
puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.gz
puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.bz2
puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.tar.xz
puppet-c0440373d12e164ac12e8f5a50c4b7a0d8d046a2.zip
- create the database and the user on deployment of mga-mirrors
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",