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