|
| 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 | +} |
0 commit comments