Julien Mailleret
bc7fc40b34
fix files mode syntax
...
From Ansible doc (https://docs.ansible.com/ansible/latest/modules/template_module.html#template-module )
For those used to /usr/bin/chmod remember that modes are actually octal numbers. You must either add a leading zero so that Ansible's YAML parser knows it is an octal number (like 0644 or 01777) or quote it (like '644' or '1777') so Ansible receives a string and can do its own conversion from string into number.
Giving Ansible a number without following one of these rules will end up with a decimal number which will have unexpected results.
2019-11-28 07:54:25 +01:00
Julien Mailleret
04438f9110
allow to deploy custom config files
2019-11-27 11:50:26 +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
9bac169862
use files permissions from official package
2019-09-18 10:57:07 +02:00
Ludovic Petetin
5bac5a4dbf
Use ini_file module for systemd overriding config file, better task naming and fix variable indentation
2019-07-22 15:19:00 +02:00
Ludovic Petetin
5994840c75
Create overriding systemd directory only if using systemd and memory lock is enabled
2019-07-22 14:42:26 +02:00
Ludovic Petetin
b73cd06c14
Set limitMEMLOCK for OS using systemd
2019-07-22 12:28:40 +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
Grzegorz Nowak
785ce1cd26
add a few more 'check_mode:no' props for compatiblity with --check mode of ansible
2019-03-14 09:24:06 +01:00
Michael Russell
3317b6af40
Merge branch 'master' into missing_becomes
2018-06-28 12:07:53 +02:00
Arnaud Venturi
f03fb893fb
Simpler systemd unit file fix, just adding a test to avoid crash on stat
2018-06-27 10:11:07 +02:00
Bill Schwanitz
cc6b4e78e2
add missing become: yes
2018-06-26 15:28:01 -04:00
Arnaud Venturi
a41d3a58c6
More compact fix of systemd unit file setup
2018-06-26 16:37:24 +02:00
Arnaud Venturi
c70fa8f848
Fix systemd unit file installation in case the file does not exist
2018-06-26 14:49:22 +02:00
Michael Russell
d451d27723
Only symlink systemd file for systemd systems
2018-06-18 07:37:51 +02:00
Michael Russell
2c8ce3bb2d
Add test for upgrading from previous version of oss to current
2018-06-15 17:22:18 +02:00
Michael Russell
fe0fc4b430
Bump default version to 6.2.2 and 5.6.8
2018-02-21 21:09:15 +01:00
Brad Pitcher
891d87c019
Merge branch 'master' into become-yes
2017-09-19 14:22:02 -06:00
Dale McDiarmid
5e1873ca68
Simpler restart handling + issue-test for recreation of problems
2017-08-20 10:30:39 -04:00
Viet Pham
7c01c8e02b
be able to override log4j2.properties with custom template using variable es_config_log4j2 as the template path
2017-08-04 18:22:12 +07:00
Brad Pitcher
024e6caa4b
use become: yes when root is needed
2017-05-12 13:31:50 -07:00
Dale McDiarmid
1bc817a378
Support for plugin diffs + improved testing on minor upgrades + fixes
2017-03-16 21:06:17 +00:00
Dale McDiarmid
fedccafb67
remove work dir for 5.x
2017-01-17 10:50:19 +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
2062e85d14
Merge conflicts
2017-01-06 10:59:16 +00:00
Dale McDiarmid
be0877f564
Merged main.yml
2017-01-03 16:13:13 +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
Maarten Bezemer
65238c74bd
Fix version_compare usage
2016-11-04 16:04:31 +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
Maarten Bezemer
dd7623fffe
Fix issues with systemd service
2016-11-03 14:53:45 +01:00
Robin Cawser
75b1c59232
register config change
2016-10-31 08:59:00 +00:00
Dale McDiarmid
ab592724d8
Initial Shield support + latest gems + single plugin dir + new port/host vars
2016-07-22 23:44:27 +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
Dale McDiarmid
cea57cdd73
Scripts and Templates to use default files directory
2016-03-21 13:21:35 +00:00
Dale McDiarmid
abf422e0e3
Moving to gem file 0.40.1 for kitchen ansible
2016-03-21 11:17:21 +00: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
dc91b70081
Systemd changes
2015-12-21 13:30:37 +00:00
Dale McDiarmid
54dd51b8a1
Multi node plugin tests
2015-12-14 19:34:09 +00:00
Dale McDiarmid
86f2bd9a2d
2.0 Support + Plugin Directory Support + Supporting Tests + Defaults Change
2015-12-13 22:46:50 +00:00
Dale McDiarmid
1034995899
Fix for server spec debian 8
2015-11-27 22:52:36 +00:00
Dale McDiarmid
6c4289b2df
Systemd temp path for Debian 8
2015-11-27 21:43:49 +00:00
Dale McDiarmid
b750bb8759
COmment change
2015-11-27 21:09:58 +00:00
Dale McDiarmid
145f345ec1
Fixes for serverspec
2015-11-27 19:39:47 +00:00
Dale McDiarmid
37447d1618
Templates everything + Systemd improvements+fixes + Notifications for restart + Idempotent checks for multiple runs
2015-11-27 18:12:59 +00:00
Dale McDiarmid
3d7d6deef0
Debug statements removed
2015-11-27 13:47:23 +00:00
Dale McDiarmid
fe336c3767
Support for removing memory settings
2015-11-27 13:42:03 +00:00
Dale McDiarmid
d7d144b638
Support for removing mlock + max open files + fix to documentation error
2015-11-27 13:17:09 +00:00
Dale McDiarmid
b2997cc0bc
Additional tests + support for empty es_config + documentation
2015-11-26 17:26:28 +00:00