Page MenuHomeSoftware Heritage

embedded.pp
No OneTemporary

embedded.pp

# 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
#
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,
}
}

File Metadata

Mime Type
text/plain
Expires
Jun 4 2025, 6:54 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3281884

Event Timeline