Mercurial > repos > other > Puppet
diff modules/website/manifests/php.pp @ 131:0dd899a10ee1 puppet-3.6
Change all "latest" packages to "installed"
Having Puppet update packages is dangerous and not correct sysadmin.
We have a script for checking for updates. Let that run and let the
sysadmin update when appropriate.
This will prevent any potential issues from faulty service restarts
in the middle of the night.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 26 Oct 2016 19:40:37 +0100 |
parents | b00eb9434938 |
children | af30a5eb468f |
line wrap: on
line diff
--- a/modules/website/manifests/php.pp Thu Oct 06 19:02:30 2016 +0100 +++ b/modules/website/manifests/php.pp Wed Oct 26 19:40:37 2016 +0100 @@ -14,7 +14,7 @@ Package <| tag == 'website' |> -> File <| tag == 'website' |> define website::php::extra_php ($pkg = $title) { package { "php${website::php::suffix}-${pkg}": - ensure => latest, + ensure => installed, } } @@ -22,7 +22,7 @@ $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ] package { $packages: - ensure => latest, + ensure => installed, } file { '/etc/php.d/custom-lockdown.ini': ensure => present, @@ -36,7 +36,7 @@ if $opcache { package { "php${suffix}-${opcache}": - ensure => latest, + ensure => installed, notify => Service['httpd'], require => Package["php${suffix}"], }