Commit graph

56 commits

Author SHA1 Message Date
Nathan Young
45ef5a467c
Add SSL keystore and truststore 2019-10-11 16:09:05 +01:00
Julien Mailleret
38390a5742
Merge branch 'master' into AddSSLSupport 2019-09-04 11:37:04 +02:00
Titan Lien
651bfdf0fa alwasy gather the es_major_version variables 2019-08-06 16:00:14 +02: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
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
1585ec2c1c
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)
2019-05-27 18:16:50 +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
Lilian Deloche
eed3efbb85 Use sleep command in remplacement of pause 2019-02-07 12:24:16 +01:00
Bill Schwanitz
cc6b4e78e2 add missing become: yes 2018-06-26 15:28:01 -04:00
Michael Russell
bbc5e0603d
Abstract 6.3 changes into a separate task to reduce all of the jinja one
liner complexity

Set ES_PATH_CONF when installing so upgrading from 6.2 to 6.3 works as
expected
2018-06-14 14:44:31 +02:00
Michael Russell
a9f8403ffa
Add playbook and environment variable to build using snapshots 2018-06-13 08:24:42 +02:00
Michael Russell
a525e0bcde
Merge branch 'master' into naming-unnamed-tasks 2018-02-21 16:33:49 +01:00
pemontto
27d81e68dd Fix conditionals introduced in #408 2018-02-16 16:37:00 -05:00
Cloud Fox
dd9b4aad97 naming unnamed tasks 2018-02-04 07:09:23 +00:00
Dale McDiarmid
6fcb22125e Pause in main 2017-09-21 00:20:54 +01:00
Dale McDiarmid
7ab416c782 Move fil realm reserved user check earlier, Move template and license after naitve realm 2017-09-20 22:58:17 +01:00
Dale McDiarmid
ce180520a8 Single template file 2017-08-17 12:25:25 +01:00
Dale McDiarmid
87e32dc241 Reworking of templates 2017-08-16 12:41:10 +01:00
Dale McDiarmid
a9987e2fb4 Merged PR #300 2017-08-16 11:08:03 +01: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
janderson2
9197f2fbcd Ensure elasticsearch is always started
Ensure that elasticsearch is started/running even if non of the handlers
are called.  Previously, if the host was provisioned correctly, but
elasticsearch was not running the role would not attempt to start it.
This can happen if elasticsearch was killed, or if the previous ansible
run failed prior to running the handlers.
2017-05-15 15:15:17 +01:00
John Reed
692637f073 Check for restarts only when restart handler executes 2017-03-21 10:13:10 -04:00
John Reed
64f9cdbc5c Copied when statement from restart handler to the service check in tasks/main.yml 2017-03-18 18:11:36 -04:00
Dale McDiarmid
595368f873 Re-structure to make xpack idempotent 2017-03-15 16:12:22 -04:00
Dale McDiarmid
914cb7867c Move restart to main from handler 2017-01-17 14:42:21 +00:00
Dale McDiarmid
86bc009b60 Logging configs for 5.0 only 2017-01-11 12:17:16 +00:00
Dale McDiarmid
cde17346d5 Version 5.0 - no need for plugin prefix 2017-01-11 10:26:57 +00:00
Maarten Bezemer
dd7623fffe Fix issues with systemd service 2016-11-03 14:53:45 +01:00
Dale McDiarmid
5d3616bd20 Support for removal for shield and license 2016-07-23 21:47:27 +01:00
Dale McDiarmid
ab592724d8 Initial Shield support + latest gems + single plugin dir + new port/host vars 2016-07-22 23:44:27 +01:00
Dale McDiarmid
5982dad832 107 changes 2016-07-20 13:51:14 +01:00
Dale McDiarmid
38b9f70586 No changes 2016-07-20 13:05:18 +01:00
Dale McDiarmid
6160207b6f Shield tag 2016-07-08 14:49:21 +01:00
Dale McDiarmid
0d80dde1ef Initial Shield Files 2016-07-08 14:48:10 +01:00
Jonathan Strootman
87bbff5279 Add always tags to set_fact tasks
Small correction to `when` clause in `tasks/elasticsearch-plugins.yml`.
2016-04-26 12:11:13 -07:00
Jonathan Strootman
aa129e4eb4 Add tags to main.yml 2016-04-26 11:45:11 -07:00
Dale McDiarmid
0fd1f34852 Fixes issue 70, Improves plugin management, Refactoring, Updates tests, Introduces multiple data dir support 2016-03-18 19:30:11 +00:00
Dale McDiarmid
7b620eadf9 Issue 40 + refactoring for better layout and more efficient restart process 2016-01-18 14:37:15 +00:00
Dale McDiarmid
4aee0098ce Changes to restart correctly on multi node install 2016-01-15 22:13:51 +00:00
Dale McDiarmid
fe025c465f Fix for plugins on 1.x 2015-12-22 09:33:45 +00:00
Dale McDiarmid
23c8bdb7de Fixes for scripts, Logging.yml moved 2015-11-25 23:43:01 +00:00
Dale McDiarmid
bdb9ee6a4a Support for scripts 2015-11-25 17:13:45 +00:00
Dale McDiarmid
d25fc792b6 Correct handling of map in template 2015-11-25 15:28:09 +00:00
Dale McDiarmid
d19297adda Support for configuration per node and multiple nodes per server 2015-10-22 19:09:53 +01:00
Jakob Reiter
d42fe1b8bb Added templates task. Moved version lock tasks into Distro specific tasks 2015-10-19 14:47:54 +02:00
Jakob Reiter
e0fb7a1177 Added include for elasticsearch scripts 2015-10-19 14:47:23 +02:00
Jakob Reiter
51c18c0997 Failed to commit changes in tasks/main.yml in 441d323 2015-10-19 14:47:22 +02:00
Jakob Reiter
50c7ff3c29 Removed dots at end of task descriptions to have a common scheme 2015-07-16 11:19:57 +02:00