icinga2/.vagrant-puppet/modules/php/manifests/extension.pp

35 lines
548 B
Puppet
Raw Normal View History

2013-10-13 17:15:35 +02:00
# 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 apache
include php
if $::require {
$require_ = [Package['apache'], Class['php'], $::require]
} else {
$require_ = [Package['apache'], Class['php']]
}
package { $name:
2013-10-15 10:12:30 +02:00
ensure => $ensure,
2013-10-13 17:15:35 +02:00
require => $require_,
2013-10-15 10:12:30 +02:00
notify => Service['apache']
2013-10-13 17:15:35 +02:00
}
}