Defined Type: php::config
- Defined in:
- manifests/config.pp
Overview
Configure php.ini settings for a PHP SAPI
Parameters
- file
-
The path to ini file
- config
-
Nested hash of key => value to apply to php.ini
Examples
php::config { '$unique-name':
file => '$full_path_to_ini_file'
config => {
{'Date/date.timezone' => 'Europe/Berlin'}
}
}
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'manifests/config.pp', line 20
define php::config(
$file,
$config
) {
if $caller_module_name != $module_name {
warning('php::config is private')
}
validate_absolute_path($file)
validate_hash($config)
create_resources(::php::config::setting, to_hash_settings($config, $file), {
file => $file
})
}
|