Skip to content

Instantly share code, notes, and snippets.

@ajturner
Created June 28, 2014 02:37
Show Gist options
  • Select an option

  • Save ajturner/ae63a4d1fd1644373779 to your computer and use it in GitHub Desktop.

Select an option

Save ajturner/ae63a4d1fd1644373779 to your computer and use it in GitHub Desktop.
Example configurations from the blog post "Deploying ElasticSearch with OpsWorks" http://blogs.aws.amazon.com/application-management/post/Tx3MEVKS0A4G7R5/Deploying-Elasticsearch-with-OpsWorks
source "https://api.berkshelf.com"
cookbook 'apt'
cookbook 'bluepill', '>= 2.3.1'
cookbook 'build-essential', '>= 1.4.2', git: 'https://github.com/opscode-cookbooks/build-essential.git'
cookbook 'ohai', git: 'https://github.com/opscode-cookbooks/ohai'
cookbook 'python', git: 'https://github.com/poise/python'
cookbook 'elasticsearch', git: 'https://github.com/elasticsearch/cookbook-elasticsearch'
cookbook 'layer-custom', git: 'https://github.com/ajturner/opsworks-elasticsearch-cookbook', rel: "layer-custom"
{
"java": {
"jdk_version": "7",
"oracle": {
"accept_oracle_download_terms": "true"
},
"accept_license_agreement": "true",
"install_flavor": "oracle"
},
"elasticsearch": {
"nginx": {
"users": [
{
"username": "username",
"password": "password"
}
],
"allow_cluster_api": "true",
"port": "80"
},
"cluster": {
"name": "opsworks-elasticsearch"
},
"gateway": {
"expected_nodes": 3
},
"discovery": {
"type": "ec2",
"zen": {
"minimum_master_nodes": 2
},
"ping": {
"multicast": {
"enabled": false
}
}
},
"ec2": {
"tag": {
"opsworks:stack": "ElasticSearch"
}
}
},
"elasticsearchtest": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "so that ES cluster can find other nodes"
}
},
"path": {
"data": "/mnt/elasticsearch-data"
},
"cloud": {
"aws": {
"region": "us-east-1"
}
},
"custom_config": {
"cluster.routing.allocation.awarenesss.attribute": "rack_id"
},
"opsworks_berkshelf": {
"debug" : true
}
}
@PatrickHennig
Copy link

Thanks for providing.
Do you know what I´m doing wrong if I get always the error "elasticsearch" already installed.
In fact it is not installed....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment