Mercurial > repos > other > Puppet
view modules/php/manifests/dev.pp @ 478:adf6fe9bbc17
Update Puppet modules to latest versions
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 29 Aug 2024 18:47:29 +0100 |
parents | 3fce34f642f1 |
children |
line wrap: on
line source
# Install the development package with headers for PHP # # === Parameters # # [*ensure*] # The PHP ensure of PHP dev to install # # [*package*] # The package name for the PHP development files # class php::dev ( String $ensure = $php::ensure, String $package = "${php::package_prefix}${php::params::dev_package_suffix}", Boolean $manage_repos = $php::manage_repos, ) inherits php::params { assert_private() # On FreeBSD, Arch there is no 'devel' package. If dev_package_suffix is undef, consider to not install. $real_package = $php::params::dev_package_suffix ? { undef => [], default => $package, } if $facts['os']['family'] == 'Debian' { # we can set the dependency only if we manage repos $require = $manage_repos ? { true => Class['apt::update'], false => undef, } } else { $require = undef } # Default PHP come with xml module and no seperate package for it if $facts['os']['name'] == 'Ubuntu' { stdlib::ensure_packages(["${php::package_prefix}xml"], { ensure => present, require => $require, }) } package { $real_package: ensure => $ensure, require => Class['php::packages'], } }