Skip to content

Instantly share code, notes, and snippets.

@EmmanuelKasper
Created June 18, 2013 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmmanuelKasper/5803612 to your computer and use it in GitHub Desktop.
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
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