Puppet Class: php::cli

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

Overview

Class: php::cli

Command Line Interface PHP. Useful for console scripts, cron jobs etc. To customize the behavior of the php binary, see php::ini.

Sample Usage:

include php::cli

Parameters:

  • ensure (Any) (defaults to: 'installed')
  • inifile (Any) (defaults to: $php::params::cli_inifile)
  • cli_package_name (Any) (defaults to: $::php::params::cli_package_name)


9
10
11
12
13
14
15
16
17
18
# File 'manifests/cli.pp', line 9

class php::cli (
  $ensure           = 'installed',
  $inifile          = $php::params::cli_inifile,
  $cli_package_name = $::php::params::cli_package_name,
) inherits ::php::params {
  package { $cli_package_name:
    ensure  => $ensure,
    require => File[$inifile],
  }
}