Puppet Class: php::cli

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

Overview

Class: php::cli

Install and configure php CLI

Parameters

ensure

The PHP ensure of PHP CLI to install

package

The package name for PHP CLI For debian it’s php5-cli

provider

The provider used to install php5-cli Could be “pecl”, “apt” or any other OS package provider

inifile

The path to the ini php5-cli ini file

settings

Hash with ‘set’ nested hash of key => value set changes to agues when applied to inifile

Variables

No variables

Examples

include php::cli

Authors

Christian “Jippi” Winther <jippignu@gmail.com>

Copyright 2012-2013 Christian “Jippi” Winther, unless otherwise noted.

Parameters:

  • ensure (Any) (defaults to: $php::cli::params::ensure)
  • package (Any) (defaults to: $php::cli::params::package)
  • provider (Any) (defaults to: $php::cli::params::provider)
  • inifile (Any) (defaults to: $php::cli::params::inifile)
  • settings (Any) (defaults to: $php::cli::params::settings)


41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'manifests/cli.pp', line 41

class php::cli(
  $ensure   = $php::cli::params::ensure,
  $package  = $php::cli::params::package,
  $provider = $php::cli::params::provider,
  $inifile  = $php::cli::params::inifile,
  $settings = $php::cli::params::settings
) inherits php::cli::params {

  php::contrib::base_package { 'cli':
    ensure   => $ensure,
    provider => $provider;
  } ->

  package { $package:
    ensure   => $ensure,
    provider => $provider;
  } ->

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

}