Created
June 18, 2013 08:29
-
-
Save EmmanuelKasper/5803612 to your computer and use it in GitHub Desktop.
Puppet class to install https://github.com/richardwilly98/elasticsearch-river-mongodb, default version 1.6.8
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
class elasticsearch-river-mongodb ($version = '1.6.8') { | |
exec {'elasticsearch-mapper-attachment': | |
require => Package['elasticsearch'], | |
command => '/usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.7.0', | |
creates => '/usr/share/elasticsearch/plugins/mapper-attachments/elasticsearch-mapper-attachments-1.7.0.jar', | |
} | |
exec {'elasticsearch-river-mongodb': | |
require => Exec['elasticsearch-mapper-attachment'], | |
command => "/usr/share/elasticsearch/bin/plugin -url http://repo1.maven.org/maven2/com/github/richardwilly98/elasticsearch/elasticsearch-river-mongodb/$version/elasticsearch-river-mongodb-$version.zip -install river-mongodb", | |
creates => "/usr/share/elasticsearch/plugins/river-mongodb/elasticsearch-river-mongodb-$version.jar", | |
notify => Service['elasticsearch'] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment