Commit graph

107 commits

Author SHA1 Message Date
Julien Mailleret
8d13c69d88
update jvm options to current version provided by elasticsearch package
The jvm options template provided by this ansible role doesn't reflect current log4j configuration in elasticsearch 6.x and 7.x. This commit update it to default version provided in 6.x and 7.x elasticsearch standard packages.
2019-11-27 11:49:49 +01:00
Julien Mailleret
36fe944048
update system config to current version provided by elasticsearch package
This is removing lot of options deprecated since 6.0 like ES_JVM_OPTIONS, CONF_DIR, DATA_DIR and LOG_DIR (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_packaging_changes.html)
2019-11-27 11:49:49 +01:00
Julien Mailleret
dc813aec3d
remove deprecated MAX_THREADS option
This option doesn't seem to exists anymore in elasticsearch. It's not present in current versions of system configuration provided by recent elasticsearch packages and there is no code using it inside elasticsearch.
2019-11-26 23:36:03 +01:00
Julien Mailleret
6217e9485e
stop overriding log4j configuration
The log4j configuration template provided by this ansible role doesn't reflect current log4j configuration in elasticsearch 6.x and 7.x.
Also this template doesn't contain any variable so everything is hardcoded inside.
As we don't need to override any value inside, let's use standard elasticsearch log4j configuration file provided by elasticsearch package and stop overriding it with this role.
2019-11-26 23:31:59 +01:00
Julien Mailleret
e6dd15ef0d
indent yaml for config file (#630) 2019-11-21 11:32:20 +01:00
pemontto
8156ab4821
Add option to forgo autogenerated SSL config 2019-11-15 12:24:29 +00:00
Nathan Young
d0064c6a88
Add option for invalid certificates 2019-10-12 00:03:47 +01:00
Nathan Young
551d93b646
Merge branch 'master' into AddSSLSupport 2019-10-11 23:09:03 +01:00
Nathan Young
b792db7bc7
Fix config colons 2019-10-11 16:29:54 +01:00
Nathan Young
51eb05b6de
Move SSL config into security conditional 2019-10-11 16:16:53 +01:00
Nathan Young
45ef5a467c
Add SSL keystore and truststore 2019-10-11 16:09:05 +01:00
Julien Mailleret
be7941438c
cleanup some values related to 5.x version
We can remove them since 5.x is no more supported
2019-09-16 10:46:43 +02:00
Julien Mailleret
447550903f
clean log config specific to 5.x version 2019-09-16 10:43:32 +02:00
Aeva
6f93938c48
Merge branch 'master' into AddSSLSupport 2019-07-24 13:22:21 -07:00
Aeva Black
d7efa2048a Add SSL/TLS support
This commit introduces SSL/TLS support for the elastic search transport
layer. It assumes certificates are generated externally, and only
handles uploading and configuring the server accordingly.
2019-07-23 08:17:39 -07:00
Julien Mailleret
226df614eb
strip spaces to avoid wrong indent 2019-07-12 11:59:07 +02:00
Julien Mailleret
2cb020a4c2
Remove multi instances support (#566)
* remove multi instances support
The goal is to stop supporting installation of more than one node in the same host. This commit update the Ansible role README documentation and remove the multi instances kitchen test.

* remove systemd and init.d templates
As we no more need to support more than one node on the same host, we no more need to override init files provided by elasticsearch official packages.

* remove file script feature
File scripts have been removed since elasticsearch 6.0 (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_scripting_changes.html#_file_scripts_removed)

* remove custom user and custom group
ES_USER and ES_GROUP settings are no longer supported (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_packaging_changes.html#_configuring_custom_user_and_group_for_package_is_no_longer_allowed)

* add upgrade procedure

* use same task for license activation with and without authentication
2019-06-03 14:18:09 +02:00
Julien Mailleret
a879b74def
[xpack] use elasticsearch default xpack features (#560)
- Stop forcing es_xpack_features variable in order to let elasticsearch install default features described in http://localhost:9200/_xpack
- Change xpack test scope to be able to test default xpack install
  - xpack scenario will test xpack install with default features
  - xpack upgrade scenario will fully test security feature
  - oss-to-xpack-upgrade will test installing only other specific features
- Cleanup some duplicate serverspec tests
- Remove `system_key`feature (deprecated in 5.6 and removed in 6.0 - [Breaking Changes 6.0.0](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-6.0.0-xes.html))
- Cleanup some ansible code (especially in `when` conditions)
2019-05-29 12:10:11 +02:00
Julien Mailleret
a1c81884e2
[7.x] add support for elasticsearch 7.x and remove support for 5.x (#558)
- add support for elasticsearch 7.x
- remove support for elasticsearch 5.x
- update kitchen-ansible configuration (install ansible and jmespath dependencies using os repositories)
- replace geoip plugin in tests as this one is now embeded in elasticsearch since 6.7.0 (cf. https://www.elastic.co/guide/en/elasticsearch/plugins/6.7/ingest-geoip.html)
- update discovery configuration for 7.x (in ES 7.x, discovery.zen.ping.unicast.hosts is replaced by discovery.seed_hosts and transport.tcp.port is replaced by transport.port, also discovery.seed_hosts is disabled on master nodes to avoid "master_not_discovered_exception" error when creating templates in the same play)
- update index template structure for 7.x 
- update security realms settings for 7.x (cf. https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#include-realm-type-in-setting)
2019-05-09 09:06:02 +02:00
Branen Salmon
59de0102a8
Merge branch 'master' into es_repo_base 2019-03-12 09:56:36 -04:00
Michael Russell
b040c4562e
Merge branch 'master' into filter-deprecation-fix 2019-03-11 21:49:16 +09:00
branen
0b0ee6f299
Merge branch 'master' into es_repo_base 2019-02-06 12:40:00 -05:00
Frank Fischer
fd8ea77fa4 Use systemd's RequiresMountsFor
User might be interested in separating data
in ephemeral and persistent state, especially
in cloud environments, e.g. data_dir on
another disk.
2019-01-17 16:22:42 +01:00
Branen Salmon
2aa0b38449
Template out the base of repo URLs
Some popular artifact caches (e.g. Artifactory) do not provide HTTP
CONNECT endpoints and thus aren't supported by es_proxy_host and
es_proxy_port.  This patch templates out the scheme and authority
components (i.e. "https://artifacts.elastic.co" ) of the apt and
yum repo URLs to accommodate the use of such artifact caches.
2019-01-16 16:28:07 -05:00
Michel Weitbrecht
a10676384f Refactor deprecated filter calls
Previously, each of the calls generated a warning : "Using tests as
filters is deprecated. Instead of using `result|version_compare` use
`result is version_compare`. This feature will be removed in version
2.9.".
2018-12-28 15:36:33 +01:00
Michael Russell
715bd8591e
Use final 6.3.0 release instead of snapshot 2018-06-13 21:34:32 +02:00
Jeffrey E
cf4da019d0
Fixed es_mail_config again
first check is es_mail_config is defined
2018-05-23 06:15:50 +02:00
Jeffrey Everling
d72ce3c22b Added path repo is defined statement again 2018-05-08 07:03:09 +02:00
Jeffrey Everling
8cfa0cfd04 Merged change 2018-05-05 08:05:14 +02:00
Jeffrey E
e880cdf61f test 2018-05-05 08:04:49 +02:00
Jeffrey Everling
796731721c Removing ssl configuration 2018-05-05 08:00:38 +02:00
Jeffrey Everling
ba080bc3c8 Revert "SSL support optimisation"
This reverts commit 80baf268e5.
2018-05-05 07:56:16 +02:00
Jeffrey E
40e5252ff4 Added support for providing an array with indices 2018-05-05 07:54:57 +02:00
Jeffrey Everling
b1e350f004 Revert "Added support for providing an array with indices"
This reverts commit da527ec19b.
2018-05-05 07:52:08 +02:00
Jeffrey Everling
80baf268e5 SSL support optimisation 2018-05-05 07:42:08 +02:00
Jeffrey Everling
479119540e Sync with HEAD 2018-05-03 16:55:16 +02:00
Jeffrey Everling
cc28b6149a Added more x-pack config options 2018-05-03 16:45:04 +02:00
Jeffrey E
da527ec19b
Added support for providing an array with indices 2018-05-03 16:29:17 +02:00
Jeffrey E
11a1e4b38a
Adjust variable name to match standard 2018-05-03 07:33:17 +02:00
Jeffrey E
7640a0383a
Update elasticsearch.yml.j2 2018-05-03 06:37:50 +02:00
Jeffrey Everling
7aebcaefa6 Added documentation for added features
Updated configuration template with if statements for optional features
2018-04-26 15:01:18 +02:00
Jeffrey Everling
34f08130e1 Added changes to add required functionality and fix a bug 2018-04-24 12:51:03 +02:00
Cyrille Verrier
e4cf9aef8c elasticsearch.yml: xpack settings added only if es_enable_xpack
the default values are:
 - es_enable_xpack: false
 - es_xpack_features: ["alerting","monitoring","graph","ml","security"]

With the default values, XPACK is not installed
But the generated elasticsearch.yml contains the XPACK Settings.
Elasticsearch application refuses to start with these unknown settings
2018-02-16 09:10:10 +01:00
Michael Russell
03a685b29d
Merge pull request #392 from edge-records/master
Parameterize timeout value for ES startup in Debian SysV init scripts
2018-02-01 17:04:15 +01:00
Michael Russell
e5da92f895
export ES_PATH_CONF because elasticsearch-env fails if it can't access
it
2018-01-31 11:08:36 +01:00
Shri Bodas
9115bb4dff
Adding 6.x support with Bootstrap user addition 2018-01-30 11:23:34 +01:00
Stephan Eckweiler
c018a3a7d1 parameterize debian init startup timeout 2017-10-09 17:11:06 +01:00
Dale McDiarmid
3a0940fcb7 Merge branch 'xpack' of https://github.com/nullkarma/ansible-elasticsearch into nullkarma-xpack 2017-08-18 19:38:16 +01:00
Dale McDiarmid
23abae8c67 Merge pull request #308 from silverlogic/systemd-limit-nproc
allow max threads to be configured
2017-08-18 16:20:29 +01:00
Ryan Pineo
2f96bc42f4 allow max threads to be configured 2017-08-18 11:04:56 -04:00