---
title: Charmhub | Deploy Elasticsearch using Charmhub - The Open Operator Collection
description: Deploy the latest version of Elasticsearch on any cloud.
url: https://charmhub.io/elasticsearch/configurations
---

# Elasticsearch

[Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")

* [Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")

Platform:

20.04

18.04

16.04

14.04

stable 67

```
juju deploy elasticsearch
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [apt-key-url](https://charmhub.io/elasticsearch/configurations#apt-key-url)
* [apt-repository](https://charmhub.io/elasticsearch/configurations#apt-repository)
* [auto-create-index](https://charmhub.io/elasticsearch/configurations#auto-create-index)
* [cluster-name](https://charmhub.io/elasticsearch/configurations#cluster-name)
* [es-heap-size](https://charmhub.io/elasticsearch/configurations#es-heap-size)
* [firewall\_enabled](https://charmhub.io/elasticsearch/configurations#firewall_enabled)
* [gpg-key](https://charmhub.io/elasticsearch/configurations#gpg-key)
* [gpg-key-id](https://charmhub.io/elasticsearch/configurations#gpg-key-id)
* [nagios\_context](https://charmhub.io/elasticsearch/configurations#nagios_context)
* [nagios\_servicegroups](https://charmhub.io/elasticsearch/configurations#nagios_servicegroups)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* apt-key-url | string

  Default: https://artifacts.elastic.co/GPG-KEY-elasticsearch

  The url for the key for the apt-repository.
* apt-repository | string

  Default: deb https://artifacts.elastic.co/packages/6.x/apt stable main

  A deb-line for the apt archive which contains the elasticsearch package.
  This is necessary until elasticsearch gets into the debian/ubuntu archives.
* auto-create-index | string

  Default: true

  Control whether index creation is created automatically or not. Also see
  the elasticsearch documentation about "action.auto\_create\_index" setting.
  Default to true which means indices are created automatically.
* cluster-name | string

  Default: elasticsearch

  This sets the elasticsearch cluster name.
* es-heap-size | int

  Default: 3

  Maximum and initial JVM heap size for Elasticsearch, in GB
* firewall\_enabled | boolean

  Default: True

  By default, the admin and peer ports (9200 and 9300) are only accessible
  to clients and peers respectively. Switch this to false to enable access
  from any machine.
* gpg-key | string

  ES repository key to use. This option can be used instead of
  apt-key-url and gpg-key in environments where proxy servers
  block access to apt-key-url.
* gpg-key-id | string

  Default: D88E42B4

  Elasticsearch's GPG fingerprint to validate the apt key
* nagios\_context | string

  Default: juju

  Used by the nrpe-external-master subordinate charm.
  A string that will be prepended to instance name to set the host name
  in nagios. So for instance the hostname would be something like:
  .
  juju-myservice-0
  .
  If you're running multiple environments with the same services in them
  this allows you to differentiate between them.
* nagios\_servicegroups | string

  A comma-separated list of nagios servicegroups.
  If left empty, the nagios\_context will be used as the servicegroup.
