33 lines
459 B
Puppet
33 lines
459 B
Puppet
# define: php::extension
|
|
#
|
|
# Install additional PHP modules.
|
|
#
|
|
# Parameters:
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
# php::extension { 'php-ldap': }
|
|
# php::extension { ['php-mysql'], ['php-pgsql']: }
|
|
#
|
|
define php::extension(
|
|
$ensure=installed
|
|
) {
|
|
|
|
include php
|
|
|
|
if $::require {
|
|
$require_ = [Class['php'], $::require]
|
|
} else {
|
|
$require_ = Class['php']
|
|
}
|
|
|
|
package { $name:
|
|
ensure => $ensure,
|
|
require => $require_
|
|
}
|
|
}
|