Puppet Class: psick::php::pear

Defined in:
manifests/php/pear.pp

Summary

Installs Pear for PHP module

Overview

Class: psick::php::pear

This class installs php pear. It’s

Parameters:

  • package (String) (defaults to: 'php-pear')

    Name of the package to install.

  • ensure (Psick::Ensure) (defaults to: 'present')

    Ensure parameter for the package to install.

  • package_options (Hash) (defaults to: {})

    An hash to pass to the package resource for special installation needs.

  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/php/pear.pp', line 14

class psick::php::pear (
  Psick::Ensure $ensure = 'present',
  String $package       = 'php-pear',
  Hash $package_options = {},
  Boolean $manage       = $psick::manage,
  Boolean $noop_manage  = $psick::noop_manage,
  Boolean $noop_value   = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }
    $default_options = {
      ensure          => $ensure,
    }
    package { $package:
      * => $default_options + $package_options,
    }
  }
}