Mercurial > repos > other > Puppet
view modules/php/manifests/cli.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 and configure php CLI # # === Parameters # # [*inifile*] # The path to the ini php5-cli ini file # # [*settings*] # Hash with nested hash of key => value to set in inifile # class php::cli ( Stdlib::Absolutepath $inifile = $php::params::cli_inifile, Hash $settings = {} ) inherits php::params { assert_private() if $php::globals::rhscl_mode { # stupid fixes for scl file { '/usr/bin/pear': ensure => 'link', target => "${$php::params::php_bin_dir}/pear", } file { '/usr/bin/pecl': ensure => 'link', target => "${$php::params::php_bin_dir}/pecl", } file { '/usr/bin/php': ensure => 'link', target => "${$php::params::php_bin_dir}/php", } } $real_settings = lookup('php::cli::settings', Hash, { 'strategy' => 'deep', 'merge_hash_arrays' => true }, $settings) if $inifile != $php::params::config_root_inifile { # only create a cli specific inifile if the filenames are different php::config { 'cli': file => $inifile, config => $real_settings, } } }