Page MenuHomeSoftware Heritage

packages.pp
No OneTemporary

packages.pp

# 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

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

Event Timeline