Commit graph

91 commits

Author SHA1 Message Date
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
Dale McDiarmid
0e2a0a5e99 Updated init, systemd, jvm.options and tests 2017-08-16 11:05:40 +01:00
Dale McDiarmid
8f9314b312 Merge pull request #311 from companieshouse/master
Ensure elasticsearch is always started and fix yum proxy logic
2017-08-15 18:41:24 +01:00
mgodlewski
758f7fae50 fix: typo
Fix issue #324
2017-06-27 15:46:47 +02:00
Daniel Chamot
5d85d03c9c add missing 'ml' and 'graph' to templates/elasticsearch.yml.j2 2017-06-26 11:25:14 +02:00
janderson2
7876a662ca Fix yum proxy logic in repo template
Previously if the proxy host was defined but empty, an invalid proxy was
config was added and the install would fail.  This is likely to occur
for instances where you conditionally set the proxy.
2017-05-15 15:17:34 +01:00
cinience
454bce4353 Disable the Netty recycler
https://github.com/elastic/elasticsearch/pull/22452
2017-03-25 12:34:05 +08:00
Dale McDiarmid
f9e842f6f9 Merge pull request #243 from CyVerse-Ansible/es-v5.2.0-log4j
Changes to log4j2.properties introduced in ES 5.2.0
2017-03-13 12:42:01 -07:00
Jonathan Strootman
7d76069ea3 Changes to log4j2.properties introduced in ES 5.2.0 2017-02-25 08:32:28 -07:00
p.molyavin
425278923f Refactor to more common options for jvm 2017-02-13 13:13:20 +07:00
p.molyavin
f80fe56af9 Fix typo 2017-02-13 09:09:17 +07:00
p.molyavin
44499d1ec3 Add options to enable jmx monitoring 2017-02-10 13:50:01 +07:00
Oliver Moser
dea2c5e636 Adding proxy support for yum repo. Signed CLA 2017-01-20 14:09:22 +01:00
Dale McDiarmid
b9c9fd109e set api port in config test + doc clarification 2017-01-17 15:19:50 +00:00
Dale McDiarmid
914cb7867c Move restart to main from handler 2017-01-17 14:42:21 +00:00
Dale McDiarmid
baf3a7c9f5 Sleep on init + cleanup 2017-01-17 12:54:29 +00:00
Dale McDiarmid
b6b9d19082 wait for startup added 2017-01-17 12:00:49 +00:00