Puppet Class: php::pear

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

Overview

Class: php::pear

Install PEAR package manager

Parameters

ensure

The PHP ensure of PHP pear to install

package

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

provider

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

Variables

No variables

Examples

include php::pear

Authors

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

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

Parameters:

  • ensure (Any) (defaults to: $php::pear::params::ensure)
  • package (Any) (defaults to: $php::pear::params::package)
  • provider (Any) (defaults to: $php::pear::params::provider)


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'manifests/pear.pp', line 34

class php::pear(
  $ensure   = $php::pear::params::ensure,
  $package  = $php::pear::params::package,
  $provider = $php::pear::params::provider
) inherits php::pear::params {

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

  exec { 'php::pear::auto_discover':
    command => 'pear config-set auto_discover 1 system',
    unless  => 'pear config-get auto_discover system | grep -q 1',
    path    => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
    require => Package[$package],
  }

}