comparison 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
comparison
equal deleted inserted replaced
130:eb32a4978a7c 131:0dd899a10ee1
12 tag => 'website', 12 tag => 'website',
13 } 13 }
14 Package <| tag == 'website' |> -> File <| tag == 'website' |> 14 Package <| tag == 'website' |> -> File <| tag == 'website' |>
15 define website::php::extra_php ($pkg = $title) { 15 define website::php::extra_php ($pkg = $title) {
16 package { "php${website::php::suffix}-${pkg}": 16 package { "php${website::php::suffix}-${pkg}":
17 ensure => latest, 17 ensure => installed,
18 } 18 }
19 } 19 }
20 20
21 website::php::extra_php { $extras: } 21 website::php::extra_php { $extras: }
22 22
23 $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ] 23 $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ]
24 package { $packages: 24 package { $packages:
25 ensure => latest, 25 ensure => installed,
26 } 26 }
27 file { '/etc/php.d/custom-lockdown.ini': 27 file { '/etc/php.d/custom-lockdown.ini':
28 ensure => present, 28 ensure => present,
29 content => 'allow_url_fopen = \'off\' 29 content => 'allow_url_fopen = \'off\'
30 expose_php = Off', 30 expose_php = Off',
34 source => 'puppet:///modules/website/custom-php.ini', 34 source => 'puppet:///modules/website/custom-php.ini',
35 } 35 }
36 36
37 if $opcache { 37 if $opcache {
38 package { "php${suffix}-${opcache}": 38 package { "php${suffix}-${opcache}":
39 ensure => latest, 39 ensure => installed,
40 notify => Service['httpd'], 40 notify => Service['httpd'],
41 require => Package["php${suffix}"], 41 require => Package["php${suffix}"],
42 } 42 }
43 file { '/etc/php.d/opcache.ini': 43 file { '/etc/php.d/opcache.ini':
44 ensure => present, 44 ensure => present,