blob: b92ea261b71840d2a49197d79d9bc7000fa2595b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
define php::config($order = '20', $value, $ensure = 'present', $sapi = 'apache2') {
file { "${::php::folder}/${sapi}/conf.d/${order}-${name}.ini":
ensure => $ensure,
owner => root,
group => root,
mode => '0644',
content => "${name}=${value}\n",
require => File["${::php::folder}/${sapi}/conf.d"],
notify => $sapi ? {
'apache2' => Service['apache2'],
default => undef,
},
}
}
|