diff options
author | mh <mh@immerda.ch> | 2008-03-23 13:38:14 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-03-23 13:38:14 +0000 |
commit | bda080ae1eb9d9d8edf245026d1c49717aaf0cd6 (patch) | |
tree | bf4b017990b9f29f9b38988a7878079288dba88c /manifests/init.pp | |
parent | f7e94027dc93319e0830e896baea71834a86b7df (diff) |
another try
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
1 files 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/' |