[Mageia-sysadm] [625] - create the database and the user on deployment of mga-mirrors
root at mageia.org
root at mageia.org
Wed Dec 15 13:24:48 CET 2010
Revision: 625
Author: misc
Date: 2010-12-15 13:24:47 +0100 (Wed, 15 Dec 2010)
Log Message:
-----------
- create the database and the user on deployment of mga-mirrors
Modified Paths:
--------------
puppet/modules/mga-mirrors/manifests/init.pp
Modified: puppet/modules/mga-mirrors/manifests/init.pp
===================================================================
--- puppet/modules/mga-mirrors/manifests/init.pp 2010-12-15 12:24:46 UTC (rev 624)
+++ puppet/modules/mga-mirrors/manifests/init.pp 2010-12-15 12:24:47 UTC (rev 625)
@@ -12,6 +12,16 @@
}
$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",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101215/7d160a47/attachment.html>
More information about the Mageia-sysadm
mailing list