The Elasticsearch cookbook is a library cookbook that is intended to be included in an application cookbook. Two resource primitives (resources) are provided for use within recipes.
- elasticsearch
- elasticsearch_plugin
- CentOS
- RHEL
- SmartOS
checksum
- Installation archive checksumcluster
- Cluster nameconfig_file
- Configuration file locationdata_dir
- Directory containing data filesgid
- GID of groupgroup
Group to run ashome_dir
- Installation directoryhttp
- Enable HTTP APIhttp_port
- HTTP API portjava_heap
- Java heap sizejava_home
- Java homelog_config
- Log configuration file locationlog_dir
- Directory containing log fileslog_file
- Log filelog_level
- Log verbositymarvel
- Enable monitoring via Marvelmlockall
- Lock process address space into memorymembers
- Cluster membersmodules
- Modulesmulticast
- Multicast supportnetwork_interface
- Network interface to listen onpid_file
- Location of PID fileplugin_dir
- Directory containing pluginsresources
- Resource contraintsservice_name
- Name of servicesource
- URL of installation archivetransport_interface
- Interface used for inter-node communicationtransport_port
- Port used for inter-node communicationtype
- Operating type of node (all, client, data, master, monitor)uid
- UID of userunicast
- Unicast supportuser
- User to run asversion
- Versionwork_dir
- Working directory
plugin_binary
- Location of plugin executableplugin_name
- Name of pluginplugin_version
- Version of plugi
As mentioned above the cookbook is intended to be included within an application cookbook. Should the the defaults to unsuitable they may be overriden.
# modify install archive checksum
set[:elasticsearch][:checksum] = '1122334455'
# modify HTTP port
set[:elasticsearch][:http_port] = '9400'
# disable marvel
set[:elasticsearch][:marvel] = false
Members may be provided through the members
parameter, however it may be useful to autodiscover members. Nodes will be discovered based the Chef environment and cluster name. Currently there is no means to alter search criteria through the resource.