[Mageia-sysadm] [504] add requires on package, so it doesn't prevent apache from starting

root at mageia.org root at mageia.org
Mon Dec 6 00:28:12 CET 2010


Revision: 504
Author:   misc
Date:     2010-12-06 00:28:12 +0100 (Mon, 06 Dec 2010)
Log Message:
-----------
add requires on package, so it doesn't prevent apache from starting
Since the config file was created even without the rpm installed,
apache complain about missing script when being restarted.

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-05 22:40:31 UTC (rev 503)
+++ puppet/modules/mga-mirrors/manifests/init.pp	2010-12-05 23:28:12 UTC (rev 504)
@@ -7,7 +7,8 @@
     }
 
     apache::vhost_catalyst_app { $vhost:
-        script => "/usr/bin/mga_mirrors_fastcgi.pl" 
+        script => "/usr/bin/mga_mirrors_fastcgi.pl", 
+        require => Package['mga-mirrors']
     }
 
     $password = extlookup("mga_mirror_password",'x')
@@ -18,6 +19,7 @@
         owner => root,
         group => apache,
         mode => 640,
-        content => template("mga-mirrors/mga-mirrors.ini")
+        content => template("mga-mirrors/mga-mirrors.ini"),
+        require => Package['mga-mirrors']
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101206/eea6aaac/attachment.html>


More information about the Mageia-sysadm mailing list