Created
June 28, 2014 02:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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....