Commit graph

31 commits

Author SHA1 Message Date
Julien Mailleret
ce523dd134
Fails deployment when using tls without security (#796) 2021-05-25 11:04:24 +02:00
Julien Mailleret
e2caeb84b3
Remove OSS support for version >= 7.11.0 (#770)
This commit is removing the option to install Elasticsearch OSS
distribution for version >= 7.11.0.

This is due to Elasticsearch recent license change.
See https://www.elastic.co/blog/licensing-change for more details.

- Add notice to breaking changes and update documentation
- Fail the deployment if trying to install OSS >= 7.11.0
- Remove OSS tests for 7.x except the upgrade test from last OSS version
  to default distribution
2021-02-05 16:23:55 +01:00
SuRaMoN
d99c0c86c5
Fixed running ansible in check mode (#701)
Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
2020-06-29 13:46:51 +02:00
anisf
9539712bd7
add AMZN Linux 2 support (#703) 2020-06-26 09:42:23 +02:00
Julien Mailleret
cab03ece10
xpack features refactoring (#653)
- rename es_enable_xpack variable to oss_version
  this variable name should be more explicit and consistent with the xpack changes made in 6.3
  es_enable_xpack can still be used but is deprecated and will be removed in a later version.
- remove es_xpack-features variables
  this variable was not working anymore since 6.3 [0]

[0]: https://github.com/elastic/ansible-elasticsearch/issues/608
2020-06-12 18:15:03 +02:00
Sylvain Baubeau
20d2a8fe6e
stop using deprecated version_compare (#659) 2020-05-06 13:41:00 +02:00
Nathan Young
45ef5a467c
Add SSL keystore and truststore 2019-10-11 16:09:05 +01:00
Ludovic Petetin
b73cd06c14 Set limitMEMLOCK for OS using systemd 2019-07-22 12:28:40 +02:00
Julien Mailleret
718b3936f1
remove http.port recommendation 2019-07-12 11:59:07 +02:00
Julien Mailleret
5b1d028bd2
fix ''dict object has no attribute dict_keys" issue with python3 (#578)
In Python2, the dict.keys(), dict.values(), and dict.items() methods returns a list. Jinja2 returns that to Ansible via a string representation that Ansible can turn back into a list. In Python3, those methods return a dictionary view object.
resource: https://docs.ansible.com/ansible/2.4/playbooks_python_version.html#dictionary-views
2019-06-07 15:54:10 +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
Hamish Forbes
d00bd5f3f1
Configurable instance_suffix 2019-05-15 14:14:02 +01: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
Karri Niemelä
69c49fc0cd Update elasticsearch-parameters.yml
Fixing data_dirs name typo
2018-12-28 15:17:37 +02:00
Victor Gonzalez
2e84fd0baa Using tests as filters is deprecated
Instead of using
`result|version_compare` use `result is version_compare`.
2018-10-26 14:02:36 +02:00
Cloud Fox
dd9b4aad97 naming unnamed tasks 2018-02-04 07:09:23 +00: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
David McDonald
00ee6ae5d2 Include RedHat 7 in distributions that should use systemd #249 2017-02-10 14:08:43 +11:00
Dale McDiarmid
fedccafb67 remove work dir for 5.x 2017-01-17 10:50:19 +00:00
Dale McDiarmid
4edc56f104 Move to memory_lock 2017-01-16 10:40:01 +00:00
Dale McDiarmid
197cf05a0e Shield to Security and other X-Pack clear up 2017-01-11 13:02:23 +00:00
Dale McDiarmid
86bc009b60 Logging configs for 5.0 only 2017-01-11 12:17:16 +00:00
Dale McDiarmid
2d7b851b1f Parameters refactored for 5.x 2017-01-10 17:09:43 +00:00
Jakob Reiter
2a27c76bff Merge pull request #206 from veger/fix_es5_issues
Initial PR for adding 5.x support. Please note, this is still in testing.
2016-12-07 01:16:45 +01:00
Jakob Reiter
5619ada110 Conditional for checking if shield is in the feature list, did not work.
Closes #190
2016-11-29 22:11:16 +01:00
Maarten Bezemer
523270405e Add support for Elasticsearch 5.x
* Use log4j2.properties instead of logging.yml
* Add jvm.options
* Use bootstrap.memory_lock instead of bootstrap.mlockall
* Get rid of work directory
* Executable does not accept `-D` anymore, replace with `-E` and `-p`
* Get rid of 5.x default (file)s
2016-11-03 15:41:42 +01:00
Dale McDiarmid
57fa9e432b Support for all xpack features through generic install + improved tests 2016-07-24 15:25:32 +01:00
Dale McDiarmid
fdf1bda155 Shield config tests + prevent use of xpack in version < 2.0 2016-07-24 12:25:34 +01:00
Dale McDiarmid
d3d9bbca17 Templates load user credentials if provided 2016-07-23 20:18:58 +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