Installs and configures ElasticSearch on AWS OpsWorks.
- AmazonLinux AMI
- Chef 0.9
To use these cookbooks with OpsWorks, include this repo as a submodule into your own cookbooks as a recipe.
In opsworks, create a new layer with a short name of elasticsearch
. Add your repository as the Custom Chef Recipes repository.
Next configure OpsWorks to run these recipes:
- Setup:
elasticsearch::install, elasticsearch::packages
- Configure:
elasticsearch
Add an EBS volume with a mount point of /data
.
You'll also need to set up a security group for these servers that allows port 9200 from the appropriate sources.
Then just boot up instances for the elasticsearch layer. As new servers are added, they will automatically cluster with each other.
HTTP basic auth is supported by installing this plugin elasticsearch-http-basic. All that's needed to make this work on OpsWorks is to add the appropriate configuration to the OpsWorks Stack Custom Chef JSON.
{
"elasticsearch": {
"basic_auth": {
"user": "username",
"password": "password"
}
}
}