From 2d8a196194523b1c8dff9b0678e7bcfc067a1825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Barboiron?= Date: Thu, 19 Jan 2017 12:44:30 +0100 Subject: [PATCH] allow pipe param for pecl extensions --- manifests/extension.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/extension.pp b/manifests/extension.pp index 36462d06..d171384f 100644 --- a/manifests/extension.pp +++ b/manifests/extension.pp @@ -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, @@ -66,6 +70,7 @@ $settings = {}, $settings_prefix = false, $sapi = 'ALL', + $pipe = undef, ) { if ! defined(Class['php']) { @@ -110,6 +115,7 @@ ensure => $ensure, provider => $provider, source => $real_source, + pipe => $pipe, require => [ Class['::php::pear'], Class['::php::dev'], @@ -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,