comparison modules/website/manifests/php.pp @ 0:956e484adc12

Initial public release of Puppet configs
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Aug 2014 19:47:38 +0000
parents
children ea71652452e9
comparison
equal deleted inserted replaced
-1:000000000000 0:956e484adc12
1 class website::php(
2 $suffix = '',
3 $opcache = undef,
4 ) {
5 $packages = [ "php${suffix}", "php${suffix}-mcrypt", "php${suffix}-mbstring", "php${suffix}-xml", "php${suffix}-gd" ]
6 package { $packages:
7 ensure => latest,
8 notify => Service['httpd']
9 }
10 ->
11 file { '/etc/php.d/custom-lockdown.ini':
12 ensure => present,
13 content => 'allow_url_fopen = \'off\'',
14 }
15
16 if $opcache {
17 package { "php${suffix}-${opcache}":
18 ensure => latest,
19 notify => Service['httpd'],
20 }
21 file { '/etc/php.d/opcache.ini':
22 ensure => present,
23 content => 'zend_extension=/usr/lib64/php/modules/opcache.so',
24 }
25 }
26 }