Skip to content

Instantly share code, notes, and snippets.

@Halama
Last active August 29, 2015 13:55
Show Gist options
  • Save Halama/8708419 to your computer and use it in GitHub Desktop.
Save Halama/8708419 to your computer and use it in GitHub Desktop.
Elasticsearch - devel
{
"run_list": [ "recipe[java]",
"recipe[monit]",
"recipe[elasticsearch]",
"recipe[elasticsearch::plugins]",
"recipe[elasticsearch::monit]" ],
"java": {
"install_flavor": "openjdk",
"jdk_version": "7"
},
"elasticsearch" : {
"version": "0.90.9",
"cluster_name" : "devel",
"bootstrap" : { "mlockall" : false },
"path" : {
"data": "/usr/local/var/data/elasticsearch/disk1"
},
"data" : {
"devices" : {
"/dev/sda2" : {
"file_system" : "ext3",
"mount_options" : "rw,user",
"mount_path" : "/usr/local/var/data/elasticsearch/disk1",
"format_command" : "mkfs.ext3",
"fs_check_command" : "dumpe2fs",
"ebs" : {
"size" : { "Ref" : "EbsSize" },
"delete_on_termination" : true,
"type" : "standard",
"snapshot_id": { "Ref" : "SnapshotId" }
}
}
}
},
"plugins" : {
"karmi/elasticsearch-paramedic" : {},
"mobz/elasticsearch-head": {},
"elasticsearch/marvel/latest": {},
"elasticsearch/kibana": {},
"elasticsearch/elasticsearch-cloud-aws": {
"version": "1.14.0"
}
}
},
"monit" : {
"notify_email" : "[email protected]",
"mail_format" : { "from" : "[email protected]", "subject" : "[monit] $SERVICE $EVENT on $HOST", "message" : "$SERVICE $ACTION: $DESCRIPTION" }
}
}
curl -# -L http://www.opscode.com/chef/install.sh | sudo bash -s --
sudo mkdir -p /etc/chef/; sudo mkdir -p /var/chef/cookbooks/elasticsearch
sudo tar --strip 1 -C /var/chef/cookbooks/elasticsearch -xf cookbook-elasticsearch-master.tar.gz
sudo apt-get install bison zlib1g-dev libopenssl-ruby1.9.1 libssl-dev libyaml-0-2 libxslt-dev libxml2-dev libreadline-gplv2-dev libncurses5-dev file ruby1.9.1-dev git --yes --fix-missing
sudo /opt/chef/embedded/bin/gem install berkshelf --no-rdoc --no-ri
sudo /opt/chef/embedded/bin/berks install --path=/var/chef/cookbooks/ --berksfile=/var/chef/cookbooks/elasticsearch/Berksfile
sudo chef-solo -N elasticsearch-test-chef-solo -j node.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment