Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit 63e07f9

Browse files
committed
Merge pull request #143 from schkovich/solr-php
Solr PHP Extension
2 parents d420e16 + 9280a16 commit 63e07f9

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

manifests/extension/solr.pp

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# == Class: php::extension::solr
2+
#
3+
# Install the solr PHP extension
4+
#
5+
# === Parameters
6+
#
7+
# [*ensure*]
8+
# The version of the package to install
9+
# Could be "latest", "installed" or a pinned version
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::solr
32+
#
33+
# === Authors
34+
#
35+
# Christian "Jippi" Winther <[email protected]>
36+
# Goran Miskovic <[email protected]>
37+
#
38+
# === Copyright
39+
#
40+
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
41+
#
42+
class php::extension::solr(
43+
$ensure = $php::extension::solr::params::ensure,
44+
$package = $php::extension::solr::params::package,
45+
$provider = $php::extension::solr::params::provider,
46+
$inifile = $php::extension::solr::params::inifile,
47+
$settings = $php::extension::solr::params::settings
48+
) inherits php::extension::solr::params {
49+
50+
php::extension { 'solr':
51+
ensure => $ensure,
52+
package => $package,
53+
provider => $provider
54+
}
55+
->
56+
php::config { 'php-extension-solr':
57+
file => $inifile,
58+
config => $settings
59+
}
60+
61+
}

manifests/extension/solr/params.pp

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" or a pinned version
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 <[email protected]>
36+
# Goran Miskovic <[email protected]>
37+
#
38+
# === Copyright
39+
#
40+
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
41+
#
42+
class php::extension::solr::params {
43+
44+
$ensure = $php::params::ensure
45+
$package = 'solr'
46+
$provider = 'pecl'
47+
$inifile = "${php::params::config_root_ini}/solr.ini"
48+
$settings = [ ]
49+
50+
}

0 commit comments

Comments
 (0)