changeset 22:ccca5d75111f puppet-3.6

Fix ordering of packages vs files so that config files go in afterwards
author IBBoard <dev@ibboard.co.uk>
date Sun, 08 Mar 2015 23:57:04 +0000
parents 7411baa55c01
children aa40b53324e4
files modules/website/manifests/php.pp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/manifests/php.pp	Sun Mar 08 23:56:35 2015 +0000
+++ b/modules/website/manifests/php.pp	Sun Mar 08 23:57:04 2015 +0000
@@ -8,16 +8,15 @@
   Package {
       notify => Service['httpd'],
   }
+  Package <| |> -> File <| |>
   $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ]
   package { $packages:
     ensure => latest,
   }
-  ->
   file { '/etc/php.d/custom-lockdown.ini':
     ensure => present,
     content => 'allow_url_fopen = \'off\'',
   }
-  ->
   file { '/etc/php.d/custom-php.ini':
     ensure => present,
     content => 'default_charset = \'UTF-8\'',
@@ -27,6 +26,7 @@
     package { "php${suffix}-${opcache}":
       ensure => latest,
       notify => Service['httpd'],
+      require => Package["php${suffix}"],
     }
     file { '/etc/php.d/opcache.ini':
       ensure => present,