Skip to content

Commit

Permalink
Merge pull request voxpupuli#297 from cbaoxa/pecl_pipe
Browse files Browse the repository at this point in the history
allow pipe param for pecl extensions
  • Loading branch information
alexjfisher authored Jan 19, 2017
2 parents 2a44eea + 2d8a196 commit 79ae3cd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manifests/extension.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
# String parameter, whether to specify ALL sapi or a specific sapi.
# Defaults to ALL.
#
# [*pipe*]
# String parameter to input answers during extension setup. Supported
# *provider*: pecl.
#
define php::extension (
$ensure = 'installed',
$provider = undef,
Expand All @@ -66,6 +70,7 @@
$settings = {},
$settings_prefix = false,
$sapi = 'ALL',
$pipe = undef,
) {

if ! defined(Class['php']) {
Expand Down Expand Up @@ -110,6 +115,7 @@
ensure => $ensure,
provider => $provider,
source => $real_source,
pipe => $pipe,
require => [
Class['::php::pear'],
Class['::php::dev'],
Expand All @@ -122,6 +128,10 @@
}
}
else {
if $pipe != undef {
warning("pipe param is not supported by php::extension provider ${provider}")
}

ensure_packages( [ $real_package ], {
ensure => $ensure,
provider => $provider,
Expand Down

0 comments on commit 79ae3cd

Please sign in to comment.