include_attribute "deployment"

default[:elasticsearch][:supported_versions] = {
        "0.19" => "0.19.4",
}
default[:elasticsearch][:version_aliases] = {
        "current" => "0.19",
}
default[:elasticsearch][:default_version] = "0.19"

default[:elasticsearch][:id] = "eyJzaWciOiJRR3o1cnVZUGFzQ1gxVTNCZFZiQ3pZcUdTbU09Iiwib2lkIjoi%0ANGU0ZTc4YmNhNTFlMTIyMDA0ZTRlOGVjNjg0MDc3MDUwMTlmMGJhYWMxODki%0AfQ==%0A"
default[:elasticsearch][:path] = File.join(node[:deployment][:home], "deploy", "elasticsearch")

default[:elasticsearch][:http_basic_plugin][:version] = "1.0.3"
default[:elasticsearch][:http_basic_plugin][:distribution_file] = "elasticsearch-http-basic-#{elasticsearch[:http_basic_plugin][:version]}.jar"
default[:elasticsearch][:http_basic_plugin][:id] = "eyJzaWciOiJjNkcwNVhOeGxVMkl1Ung3cVFhU3B1RzBBYms9Iiwib2lkIjoi%0ANGU0ZTc4YmNhNjFlMTIxMDA0ZTRlN2Q1MWQ5NTBlMDUwMTlmMGM3YWYwMDMi%0AfQ==%0A"
default[:elasticsearch][:http_basic_plugin][:path] = File.join(default[:elasticsearch][:path], "plugins", "http-basic")

default[:elasticsearch_gateway][:service][:timeout] = "20"
default[:elasticsearch_gateway][:node_timeout] = "20"

default[:elasticsearch_node][:capacity] = "50"
default[:elasticsearch_node][:index] = "0"
default[:elasticsearch_node][:max_memory] = "512"
default[:elasticsearch_node][:token] = "changeelasticsearchtoken"
default[:elasticsearch_node][:op_time_limit] = "6"

default[:elasticsearch][:checksum] = 'dfcfe4189e42b60b049f9b203799cf24c9c1581673eb2df96dda34a67372facd'
default[:elasticsearch][:http_basic_plugin][:checksum] = 'b7e23538301d2d21abe55f7f871946ea597cc00b57b65657937e0dd384c4f4b4'
