Puppet Class: php::embedded
- Inherits:
- php::params
- Defined in:
- manifests/embedded.pp
Overview
Install and configure php embedded SAPI
Parameters
- inifile
-
The path to the ini php5-embeded ini file
- settings
-
Hash with nested hash of key => value to set in inifile
- package
-
Specify which package to install
- ensure
-
Specify which version of the package to install
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/embedded.pp', line 17
class php::embedded (
String $ensure = $php::ensure,
String $package = "${php::package_prefix}${php::params::embedded_package_suffix}",
Stdlib::Absolutepath $inifile = $php::params::embedded_inifile,
Hash $settings = {},
) inherits php::params {
assert_private()
$real_settings = lookup(
'php::embedded::settings',
Hash, {
'strategy' => 'deep',
'merge_hash_arrays' => true
},
$settings
)
$real_package = $facts['os']['family'] ? {
'Debian' => "lib${package}",
default => $package,
}
package { $real_package:
ensure => $ensure,
require => Class['php::packages'],
}
-> php::config { 'embedded':
file => $inifile,
config => $real_settings,
}
}
|