Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392116
embedded.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
embedded.pp
View Options
# 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
Details
Attached
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
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment