Skip to content

Commit 2b15623

Browse files
committed
Support installing XMLRPC PHP extension.
1 parent d420e16 commit 2b15623

2 files changed

Lines changed: 114 additions & 0 deletions

File tree

manifests/extension/xmlrpc.pp

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# == Class: php::extension::xmlrpc
2+
#
3+
# Install the PHP mongo extension
4+
#
5+
# === Parameters
6+
#
7+
# [*ensure*]
8+
# The version of the package to install
9+
# Could be "latest", "installed", a pinned version or "absent"
10+
# This matches "ensure" from Package
11+
#
12+
# [*package*]
13+
# The package name in your provider
14+
#
15+
# [*provider*]
16+
# The provider used to install the package
17+
#
18+
# [*inifile*]
19+
# The path to the extension ini file
20+
#
21+
# [*settings*]
22+
# Hash with 'set' nested hash of key => value
23+
# set changes to agues when applied to *inifile*
24+
#
25+
# === Variables
26+
#
27+
# No variables
28+
#
29+
# === Examples
30+
#
31+
# include 'php::extension::xmlrpc'
32+
#
33+
# class {'php::extension::xmlrpc':
34+
# ensure => latest
35+
# }
36+
#
37+
# === Authors
38+
#
39+
# Christian "Jippi" Winther <jippignu@gmail.com>
40+
# Goran Miskovic <schkovich@gmail.com>
41+
#
42+
# === Copyright
43+
#
44+
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
45+
#
46+
class php::extension::xmlrpc(
47+
$ensure = $php::extension::xmlrpc::params::ensure,
48+
$package = $php::extension::xmlrpc::params::package,
49+
$provider = $php::extension::xmlrpc::params::provider,
50+
$inifile = $php::extension::xmlrpc::params::inifile,
51+
$settings = $php::extension::xmlrpc::params::settings
52+
) inherits php::extension::xmlrpc::params {
53+
54+
php::extension { 'xmlrpc':
55+
ensure => $ensure,
56+
package => $package,
57+
provider => $provider
58+
}
59+
->
60+
php::config { 'php-extension-xmlrpc':
61+
file => $inifile,
62+
config => $settings
63+
}
64+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# == Class: php::extension::tidy::params
2+
#
3+
# Defaults file for the tidy PHP extension
4+
#
5+
# === Parameters
6+
#
7+
# No parameters
8+
#
9+
# === Variables
10+
#
11+
# [*ensure*]
12+
# The version of the package to install
13+
# Could be "latest", "installed", a pinned version or "absent"
14+
# This matches "ensure" from Package
15+
#
16+
# [*package*]
17+
# The package name in your provider
18+
#
19+
# [*provider*]
20+
# The provider used to install the package
21+
#
22+
# [*inifile*]
23+
# The path to the extension ini file
24+
#
25+
# [*settings*]
26+
# Hash with 'set' nested hash of key => value
27+
# set changes to agues when applied to *inifile*
28+
#
29+
# === Examples
30+
#
31+
# No examples
32+
#
33+
# === Authors
34+
#
35+
# Christian "Jippi" Winther <jippignu@gmail.com>
36+
# Goran Miskovic <schkovich@gmail.com>
37+
#
38+
# === Copyright
39+
#
40+
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
41+
#
42+
class php::extension::xmlrpc::params {
43+
44+
$ensure = $php::params::ensure
45+
$package = 'php5-xmlrpc'
46+
$provider = undef
47+
$inifile = "${php::params::config_root_ini}/xmlrpc.ini"
48+
$settings = [ ]
49+
50+
}

0 commit comments

Comments
 (0)