Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392050
packages.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
830 B
Subscribers
None
packages.pp
View Options
# Install common PHP packages
#
# === Parameters
#
# [*ensure*]
# Specify which version of PHP packages to install
#
# [*names*]
# List of the names of the package to install
#
# [*names_to_prefix*]
# List of packages names that should be prefixed with the common
# package prefix `$php::package_prefix`
#
class
php
::
packages
(
$ensure
=
$php::ensure,
$names_to_prefix
=
prefix
(
$php::params::common_package_suffixes,
$php::package_prefix
),
$names
=
$php::params::common_package_names,
)
inherits
php
::
params
{
if
$caller_module_name
!=
$module_name
{
warning
(
'php::packages is private'
)
}
validate_string
(
$ensure)
validate_array
(
$names)
validate_array
(
$names_to_prefix)
$real_names
=
union
(
$names,
$names_to_prefix)
package
{
$real_names:
ensure
=>
$ensure,
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:53 PM (10 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3268605
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment