Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125688
pear.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
992 B
Subscribers
None
pear.pp
View Options
# == Class: php::pear
#
# Install PEAR package manager
#
# === Parameters
#
# [*ensure*]
# The PHP ensure of PHP pear to install and run pear auto_discover
#
# [*package*]
# The package name for PHP pear
# For debian it's php5-pear
#
# === Authors
#
# Christian "Jippi" Winther <jippignu@gmail.com>
# Robin Gloster <robin.gloster@mayflower.de>
#
# === Copyright
#
# See LICENSE file
#
class
php
::
pear
(
$ensure
=
$php::ensure,
$package
=
$php::params::pear_package,
)
inherits
php
::
params
{
if
$caller_module_name
!=
$module_name
{
warning
(
'php::pear is private'
)
}
validate_string
(
$ensure)
validate_string
(
$package)
package
{
$package:
ensure
=>
$ensure,
require
=>
Class
[
'php::cli'
],
}
exec
{
'php::pear::auto_discover'
:
command
=>
'pear config-set auto_discover 1 system'
,
unless
=>
'pear config-get auto_discover system | grep -q 1'
,
path
=>
[
'/bin/'
,
'/sbin/'
,
'/usr/bin/'
,
'/usr/sbin/'
],
require
=>
Package
[
$package],
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 9:12 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3274126
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment