diff options
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/' |