Mercurial > repos > other > Puppet
comparison modules/website/manifests/php.pp @ 72:33682e5b34fc puppet-3.6
Merge latest changes from Default
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Oct 2015 20:17:52 +0000 |
parents | 6bbc86f6cee5 565b788f7ac1 |
children | 89a94c61e4d6 |
comparison
equal
deleted
inserted
replaced
71:1a985a58dea5 | 72:33682e5b34fc |
---|---|
1 class website::php( | 1 class website::php( |
2 $suffix = '', | 2 $suffix = '', |
3 $opcache = undef, | 3 $opcache = undef, |
4 $extras = [], | |
4 ) { | 5 ) { |
5 File { | 6 File { |
6 notify => Service['httpd'], | 7 notify => Service['httpd'], |
7 tag => 'website', | 8 tag => 'website', |
8 } | 9 } |
9 Package { | 10 Package { |
10 notify => Service['httpd'], | 11 notify => Service['httpd'], |
11 tag => 'website', | 12 tag => 'website', |
12 } | 13 } |
13 Package <| tag == 'website' |> -> File <| tag == 'website' |> | 14 Package <| tag == 'website' |> -> File <| tag == 'website' |> |
15 define website::php::extra_php ($pkg = $title) { | |
16 package { "php${website::php::suffix}-${pkg}": | |
17 ensure => latest, | |
18 } | |
19 } | |
20 | |
21 website::php::extra_php { $extras: } | |
22 | |
14 $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" ] |
15 package { $packages: | 24 package { $packages: |
16 ensure => latest, | 25 ensure => latest, |
17 } | 26 } |
18 file { '/etc/php.d/custom-lockdown.ini': | 27 file { '/etc/php.d/custom-lockdown.ini': |