From bda080ae1eb9d9d8edf245026d1c49717aaf0cd6 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 23 Mar 2008 13:38:14 +0000 Subject: another try --- manifests/init.pp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d147905..a3c3bc2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -45,10 +45,17 @@ class apache::base { require => Package[apache], content => template('apache/default/default_index.erb'), } + #ensure php is installed before restarting the service + if defined(Package[php]) { + Package[apache]{ + require +> Package[php], + } + Service[apache]{ + require +> Package[php], + } + } } - - ### distro specific stuff class apache::centos inherits apache::base{ $config_dir = '/etc/httpd/' -- cgit v1.2.3