From 79c9deef449e895f4b6f3c8049340d4f70394c37 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 5 Dec 2010 23:28:12 +0000 Subject: 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. --- modules/mga-mirrors/manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/mga-mirrors') diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp index 6f74907f..2b7def29 100644 --- a/modules/mga-mirrors/manifests/init.pp +++ b/modules/mga-mirrors/manifests/init.pp @@ -7,7 +7,8 @@ class mga-mirrors { } 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 @@ class mga-mirrors { owner => root, group => apache, mode => 640, - content => template("mga-mirrors/mga-mirrors.ini") + content => template("mga-mirrors/mga-mirrors.ini"), + require => Package['mga-mirrors'] } } -- cgit v1.2.1