Puppet Class: php::cli

Inherits:
::php::params
Defined in:
manifests/cli.pp

Overview

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

Parameters:

  • inifile (Stdlib::Absolutepath) (defaults to: $::php::params::cli_inifile)
  • settings (Hash) (defaults to: {})


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/cli.pp', line 11

class php::cli(
  Stdlib::Absolutepath $inifile = $::php::params::cli_inifile,
  Hash $settings                = {}
) inherits ::php::params {

  if $caller_module_name != $module_name {
    warning('php::cli is private')
  }

  $real_settings = deep_merge($settings, hiera_hash('php::cli::settings', {}))

  ::php::config { 'cli':
    file   => $inifile,
    config => $real_settings,
  }
}