This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Solr PHP Extension #143
Merged
Merged
Solr PHP Extension #143
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
$inifile = "${php::params::config_root_ini}/solr.ini" | ||
$settings = [ ] | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this install?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore me
_