10 Commits

Author SHA1 Message Date
Monty Taylor
40e54b9233 Fix two typos in updated elasticsearch module
The resource has _deb in it, which was left out.
Also, the java package name resource was replaced in only
one of two locations.

Change-Id: Ia47beeeff80f2cba1e7dfff0538156bd6464b9a1
2014-04-18 16:02:37 -07:00
Monty Taylor
c52c2cf93a Silence successful elasticsearch runs
java7-runtime-headless is an empty package that can never be
installed, so it attempts to install every time. Replace it with
openjdk-7-jre-headless, which is the real package.

Also, add a refreshonly on the exec for checking the diff, because
it runs every time as well.

Change-Id: I5195d27ae90cd7f9f3e20d92aca43d7b8d0e504a
2014-04-18 15:38:09 -07:00
Clark Boylan
49a1274b70 Install curl on elasticsearch nodes.
We rely on curl to query the elasticsearch api for cluster state,
deleting indexes and so on. Ensure it is installed on the elasticsearch
nodes.

Change-Id: I843c6be65e5750856cb0b68f68eb7fac47e04e29
2014-03-03 10:30:27 -08:00
Jeremy Stanley
c5bd6f0fcb Don't ensure elasticsearch service is running
The package maintainer scripts start elasticsearch when it gets
installed, but it seems to return control before the pidfile is
created which allows puppet to race for it and ultimately launch a
second daemon resulting in an OOM condition. It's configured to
start at boot anyway, so the puppet ensure running isn't buying us
much.

Change-Id: I1b374f90c198b9cb73d412fe63b439623f434d9a
2014-02-26 01:52:46 +00:00
Jeremy Stanley
f25d388f4b Puppet the /etc/elasticsearch directory
* modules/elasticsearch/manifests/init.pp: Brown bag fix... the
package installation used to make this directory, but now we want to
put files in it prior to package installation.

Change-Id: Id3069999d59f965226bcae8f21ef7a93e4d44c72
2014-02-26 00:26:09 +00:00
Jeremy Stanley
46c3c63def Correct elasticsearch config dependency ordering
* modules/elasticsearch/manifests/init.pp: The config files need to
be in place before package installation starts the service, and they
don't depend on the package itself anyway.

Change-Id: Iabc57e3091533eb5168c670f5c29d0d2dac9a1a2
2014-02-25 22:05:12 +00:00
Ryan Lane
712349aae7 Configure elasticsearch via a hash
Change-Id: I70067e371d930dcecab6e85399465b4c3bf67ab2
2013-10-21 18:48:29 -07:00
Clark Boylan
0423b59c6c Upgrade elasticsearch to version 0.90.3.
* modules/openstack_project/manifests/elasticsearch.pp: Upgrade
elasticsearch to 0.90.3 to support logstash 1.2.1. This version is
required to use the elasticsearch output in logstash 1.2.1.

* modules/elasticsearch/files/elasticsearch.mapping.json: Add setting
for new "message" field in logstash 1.2.1's new schema.

Change-Id: Ice1a8613ea11aeb954c600752a2de745dd56ef4b
2013-10-21 10:06:28 -07:00
Clark Boylan
053f98b4ee Make ES Heap Size configurable.
wiki.o.o is much smaller than our typical elasticsearch nodes. For it to
use elasticsearch it needs to allocate a much smaller heap. Make the
heap size configurable (keep the 16g default) and set the heap size to
1g for wiki.o.o.

Change-Id: I0c5fb4865eb07c0fa5bbe4cf698a9f0e9ea9f2fc
2013-10-18 16:59:47 -07:00
Ryan Lane
3870a5a2fa Separate logstash/elasticsearch and verify hash
To allow for reuse of elasticsearch I'm splitting it away from
logstash. Also, I'm doing a hash check of the elasticsearch wget
for better security.

Change-Id: Iff42d538cd941abd50b000879ea4a237ea48d40e
2013-10-15 11:57:51 -07:00