Mercurial > repos > other > Puppet
view modules/php/manifests/packages.pp @ 482:d83de9b3a62b default tip
Update hiera.yaml within Puppet config
Forgot that we manage it from here. Now has content to match
new packages
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 30 Aug 2024 16:10:36 +0100 |
parents | 3fce34f642f1 |
children |
line wrap: on
line source
# 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 ( String $ensure = $php::ensure, Boolean $manage_repos = $php::manage_repos, Array $names_to_prefix = prefix($php::params::common_package_suffixes, $php::package_prefix), Array $names = $php::params::common_package_names, ) inherits php::params { assert_private() $real_names = union($names, $names_to_prefix) if $facts['os']['family'] == 'Debian' { if $manage_repos { include apt Class['apt::update'] -> Package[$real_names] } package { $real_names: ensure => $ensure, } } else { package { $real_names: ensure => $ensure, } } }