From fa78cf746d164f81a5ea4d949948c60fe74c6698 Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Mon, 3 Aug 2015 21:30:45 +0200 Subject: [PATCH 1/5] Added new fariables to Readme. Changed formating. --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 063700d..a82c8bf 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ hosts: my_host vars: java_packages: - "oracle-java7-installer" - es_major_version: 1.4 - es_version: 1.4.4 + es_major_version: 1.7 + es_version: 1.7.0 es_start_service: false es_plugins_reinstall: false es_plugins: @@ -72,19 +72,49 @@ ansible-playbook -i hosts ./your-playbook.yml ## Configuration You can add the role without any customisation and it will by default install Java and Elasticsearch, without any plugins. -Following variables affect the versions installed: +#### Description of the variables available. -* ```es_major_version``` (e.g. "1.5" ) -* ```es_version``` (e.g. "1.5.2") -* ```es_start_service``` (true (default) or false) -* ```es_plugins_reinstall``` (true or false (default) ) -* ```es_plugins``` (an array of plugin definitons e.g.: +```es_major_version``` (e.g. `1.7` ) + +Which major version to use. This is also used to define which the repository is used. + +```es_version``` (e.g. `1.7.0`) + +Which minor version to use. + +```es_start_service``` (true (default) or false) + +Should elasticsearch be startet after installation? + +```es_use_repository``` (true (default) or false ) + +Should elasticsearch be installed from a repository or from a url download. If false package will be downloaded from https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch.... You can also specify `es_custom_package_url` with a url to a custom package. + +```es_version_lock``` (true or false (default)) + +This will lock the elasticsearch version using `yum versionlock` or `apt-mark hold`. + +```es_scripts``` (true or false (default)) + +If true you need to supply a files/scripts/ folder with your scripts, inside the role directory. The folder and all files will be copied to `/etc/elasticsearch/scripts`. You can also provide a scripts/ folder at toplevel of your playbook. + + +```es_plugins_reinstall``` (true or false (default) ) + +Schould plugins be reinstalled? + +```es_plugins``` (an array of plugin definitons e.g.:) ``` - es_plugins: - - plugin: elasticsearch-cloud-aws - version: 2.5.0 - ``` + es_plugins: + - plugin: elasticsearch-cloud-aws + version: 2.5.0 +``` -* ```java_repos``` (an array of repositories to be added to allow java to be installed) -* ```java_packages``` (an array of packages to be installed to get Java installed) +```java_debian``` + +name of the java debian package to use (e.g. `openjdk-7-jre-headless`) + +```java_rhel``` + +name of the java rhel package to use (e.g. `java-1.8.0-openjdk.x86_64`) From cf8806d6bdde0f6000916f262f502e1cb0e04be6 Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Mon, 3 Aug 2015 21:37:39 +0200 Subject: [PATCH 2/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a82c8bf..d0a9fca 100644 --- a/README.md +++ b/README.md @@ -111,10 +111,10 @@ Schould plugins be reinstalled? version: 2.5.0 ``` -```java_debian``` +`java_debian` name of the java debian package to use (e.g. `openjdk-7-jre-headless`) -```java_rhel``` +`java_rhel` name of the java rhel package to use (e.g. `java-1.8.0-openjdk.x86_64`) From 43bfab9fcdc3683b818f9a639d2bfed8fe0f1f05 Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Tue, 4 Aug 2015 09:05:01 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0a9fca..bd040ab 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Which minor version to use. ```es_start_service``` (true (default) or false) -Should elasticsearch be startet after installation? +Should elasticsearch be started after installation? ```es_use_repository``` (true (default) or false ) From efca9a0b5f85ce6d9232749481957920a0c26fdf Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Tue, 4 Aug 2015 09:18:50 +0200 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd040ab..32f5c4f 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ hosts: my_host - elasticsearch vars: java_packages: - - "oracle-java7-installer" + - "openjdk-7-jre-headless" es_major_version: 1.7 es_version: 1.7.0 es_start_service: false From a476a3c72044b4e2259c2fd60a616c1ce8d162ea Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Tue, 4 Aug 2015 09:40:43 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32f5c4f..7f2b220 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ hosts: my_host roles: - elasticsearch vars: - java_packages: + java_debian: - "openjdk-7-jre-headless" es_major_version: 1.7 es_version: 1.7.0