1 # == Define: elasticsearch::ruby
3 # there are many ruby bindings for elasticsearch. This provides all
4 # the ones we know about http://www.elasticsearch.org/guide/clients/
9 # String. Controls if the managed resources shall be <tt>present</tt> or
10 # <tt>absent</tt>. If set to <tt>absent</tt>:
11 # * The managed software packages are being uninstalled.
12 # * Any traces of the packages will be purged as good as possible. This may
13 # include existing configuration files. The exact behavior is provider
15 # * Puppet type reference: {package, "purgeable"}[http://j.mp/xbxmNP]
16 # * {Puppet's package provider source code}[http://j.mp/wtVCaL]
17 # * System modifications (if any) will be reverted as good as possible
18 # (e.g. removal of created users, services, changed log settings, ...).
19 # * This is thus destructive and should be used with care.
20 # Defaults to <tt>present</tt>.
24 # elasticsearch::ruby { 'elasticsearch':; }
28 # * Richard Pijnenburg <mailto:richard@ispavailability.com>
30 define elasticsearch::ruby (
34 if ! ($ensure in [ 'present', 'absent' ]) {
35 fail("\"${ensure}\" is not a valid ensure parameter value")
38 # make sure the package name is valid and setup the provider as
47 'elastic_searchable': {
57 fail("unknown ruby client package '${name}'")
61 package { "ruby_${name}":
64 provider => $provider,