helm-elasticstack/tools/elasticlicense
Bernd Kiefer 8dd049da4b
Replace gas with gosec (#5)
2018-08-15 11:27:23 +02:00
..
.gitignore Add a tool which can be used to install the x-pack license in an Elasticsearch cluster 2018-03-15 13:32:52 +01:00
Dockerfile Add a tool which can be used to install the x-pack license in an Elasticsearch cluster 2018-03-15 13:32:52 +01:00
Makefile Replace gas with gosec (#5) 2018-08-15 11:27:23 +02:00
README.md Update the name of the docker repository to mseoss 2018-03-28 15:53:48 +02:00
auth-file.json Add a tool which can be used to install the x-pack license in an Elasticsearch cluster 2018-03-15 13:32:52 +01:00
glide.lock Add a tool which can be used to install the x-pack license in an Elasticsearch cluster 2018-03-15 13:32:52 +01:00
glide.yaml Add a tool which can be used to install the x-pack license in an Elasticsearch cluster 2018-03-15 13:32:52 +01:00
main.go Disable false positive gas warning 2018-04-09 12:25:00 +02:00
main_suite_test.go Add LICENSE header to all source code files 2018-03-27 14:10:56 +02:00
main_test.go Add LICENSE header to all source code files 2018-03-27 14:10:56 +02:00

README.md

elasticlicense

This is a tool which can be used to install the x-pack license into an Elasticsearch cluster.

Installation

go get github.com/Azure/helm-elasticstack/tools/elasticlicense

Alternatively you can build the docker image by cloning the repository and executing the following command:

make image

Install a new license

Download the license form Elasticsearch support and store it into a license.json file.

You should also define the basic authentication credentials used by your Elasticsearch cluster in a auth-file.json as follows:

{
  "username": "<USER NAME>",
  "password": "<PASSWORD>"
}

The license can be installed by executing the command:

elasticlicense install -license-file=license.json -host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=auth-file.json

or run the tool in a docker container:

docker run --rm -v ${PWD}:/config -t mseoss/elasticlicense install -license-file=/config/license.json \
-host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=/config/auth-file.json

The installed license can be viewed with the following command:

elasticlicense view -host=<ELASTICSEARCH-HOST> -port=<ELASTICSEARCH-PORT> -auth-file=auth-file.json

Development

You can execute the tests and build the tool using the default make target:

make

To build and publish the docker image execute:

make image
make image-push