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

Solr PHP Extension #143

Merged
merged 1 commit into from
Mar 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions manifests/extension/solr.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# == Class: php::extension::solr
#
# Install the solr PHP extension
#
# === Parameters
#
# [*ensure*]
# The version of the package to install
# Could be "latest", "installed" or a pinned version
# This matches "ensure" from Package
#
# [*package*]
# The package name in your provider
#
# [*provider*]
# The provider used to install the package
#
# [*inifile*]
# The path to the extension ini file
#
# [*settings*]
# Hash with 'set' nested hash of key => value
# set changes to agues when applied to *inifile*
#
# === Variables
#
# No variables
#
# === Examples
#
# include php::extension::solr
#
# === Authors
#
# Christian "Jippi" Winther <[email protected]>
# Goran Miskovic <[email protected]>
#
# === Copyright
#
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
#
class php::extension::solr(
$ensure = $php::extension::solr::params::ensure,
$package = $php::extension::solr::params::package,
$provider = $php::extension::solr::params::provider,
$inifile = $php::extension::solr::params::inifile,
$settings = $php::extension::solr::params::settings
) inherits php::extension::solr::params {

php::extension { 'solr':
ensure => $ensure,
package => $package,
provider => $provider
}
->
php::config { 'php-extension-solr':
file => $inifile,
config => $settings
}

}
50 changes: 50 additions & 0 deletions manifests/extension/solr/params.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# == Class: php::extension::tidy::params
#
# Defaults file for the tidy PHP extension
#
# === Parameters
#
# No parameters
#
# === Variables
#
# [*ensure*]
# The version of the package to install
# Could be "latest", "installed" or a pinned version
# This matches "ensure" from Package
#
# [*package*]
# The package name in your provider
#
# [*provider*]
# The provider used to install the package
#
# [*inifile*]
# The path to the extension ini file
#
# [*settings*]
# Hash with 'set' nested hash of key => value
# set changes to agues when applied to *inifile*
#
# === Examples
#
# No examples
#
# === Authors
#
# Christian "Jippi" Winther <[email protected]>
# Goran Miskovic <[email protected]>
#
# === Copyright
#
# Copyright 2012-2015 Christian "Jippi" Winther, unless otherwise noted.
#
class php::extension::solr::params {

$ensure = $php::params::ensure
$package = 'solr'
$provider = 'pecl'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this install?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore me _

$inifile = "${php::params::config_root_ini}/solr.ini"
$settings = [ ]

}