[Mageia-sysadm] [523] add a require on a required package, needed to create initial database

root at mageia.org root at mageia.org
Tue Dec 7 03:40:21 CET 2010


Revision: 523
Author:   misc
Date:     2010-12-07 03:40:21 +0100 (Tue, 07 Dec 2010)
Log Message:
-----------
add a require on a required package, needed to create initial database

Modified Paths:
--------------
    puppet/modules/postgresql/manifests/init.pp

Modified: puppet/modules/postgresql/manifests/init.pp
===================================================================
--- puppet/modules/postgresql/manifests/init.pp	2010-12-07 00:20:03 UTC (rev 522)
+++ puppet/modules/postgresql/manifests/init.pp	2010-12-07 02:40:21 UTC (rev 523)
@@ -1,10 +1,20 @@
 class postgresql {
     
     $pgsql_data = "/var/lib/pgsql/data/"
+    $pg_version = '9.0'
 
-    package { 'postgresql9.0-server':
+    # missing requires is corrected in cooker, 
+    # should be removed
+    # once the fix is in a stable release 
+    package { "postgresql$pg_version-plpgsql":
+        alias => "postgresql-plpgsql",
+        ensure => installed,
+    }
+
+    package { "postgresql$pg_version-server":
         alias => "postgresql-server",
-        ensure => installed
+        ensure => installed,
+        require => Package['postgresql-plpgsql'],
     }
 
     service { postgresql:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101207/dfa1342c/attachment.html>


More information about the Mageia-sysadm mailing list