Commit graph

280 commits

Author SHA1 Message Date
Lilian Deloche
2d7bc5607e Use dpkg_selections to lock elasticsearch version 2019-01-24 15:30:49 +01:00
Michael Russell
9823a3fc54
Merge pull request #527 from katsukamaru/java-version-check-in-check-mode
Execute java version check in check mode
2019-01-15 12:44:32 +01:00
shin.katsumaru
5d0dcbe147 Execute java version check in check mode 2019-01-15 17:19:02 +09:00
Frank Fischer
596f313b17 Allow not installing Elasticsearch deb repository key
If a variable is set in Ansible, there is no way to unset
it ever again, i.e. 'null' or '~' do not work.
Since this value is set in defaults we have to check
for content instead of defined.
2019-01-14 13:10:07 +01:00
Michael Russell
b37723aa1f
Merge pull request #513 from kakoni/master
Update elasticsearch-parameters.yml
2019-01-08 20:34:11 +01:00
Michael Russell
a7b07e458b
Merge pull request #521 from elastic/swapsies
Allow switching between oss and standard packages
2019-01-08 19:54:20 +01:00
Michael Russell
f7d402369c
Properly cleanup the other apt repository when switching packages 2019-01-02 10:39:48 +01:00
Michael Russell
5126dbc5e8
Actually remove the unused RedHat repository 2019-01-02 10:06:47 +01:00
Michael Russell
486717bc6f
Remove the other Elasticsearch repo when switching versions 2018-12-31 17:28:37 +01:00
Michel Weitbrecht
124775740a Fix package download URL and set ES_PATH_CONF
The old URL yields a 404. ES_PATH_CONF is also needed when installing
elasticsearch using the downloaded package.
2018-12-28 15:31:11 +01:00
Karri Niemelä
69c49fc0cd Update elasticsearch-parameters.yml
Fixing data_dirs name typo
2018-12-28 15:17:37 +02:00
Michael Russell
c2e51f8ecf
Fix jinja syntax variable fun
How it was previously "worked" but just ignored trying to remove the
package. Luckily it was caught by the test-kitchen testing!
2018-12-27 17:35:44 +01:00
Michael Russell
3e265a467d
Allow switching between oss and standard packages
Before only going from the standard package to oss was supported. Now
this works properly in both directions.
2018-12-27 16:42:14 +01:00
Michael Russell
ec3465a60c
Only attempt to copy the old users file if it actually exists 2018-11-27 12:50:49 +01:00
Michael Russell
f221381929
Copy the old deprecated users file when upgrading
In 6.5 Elasticsearch finds the old file which breaks the way the ansible
playbook is detecting the installed users. This means that after an
upgrade to 6.5 the users still actually exist but the playbook fails
when trying to add them again as they already exist.
2018-11-26 13:56:51 +01: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
Lazare Olivry
d338849b4f add idempotence in check mode for plugins 2018-10-10 18:14:21 +02:00
Michael Russell
19717553e5
Only use the first found java version if there are multiple installed 2018-09-05 09:05:09 +02:00
Michael Russell
7857f24f83
Remove the x-pack plugin directory since it isn't a plugin anymore 2018-08-28 07:58:50 +02:00
kimoto
91f179d98e es_allow_downgrades parameter is ignoring yum 2018-08-10 14:14:20 +09:00
Michael Russell
c2a68d06c8
Add version lock to the correct package name 2018-07-26 15:45:40 +02:00
David Leatherman
580bf9348b handle the nested response
the response from the search endpoint is now wrapped in a map with the
packages key
2018-07-09 11:02:58 -04: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
6d6fc3a7cb
Gracefully remove default elasticsearch package when upgrading to the
oss version
2018-06-18 12:01:45 +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
dce98bbd34
Revert no_log debugging 2018-06-14 16:37:31 +02:00
Michael Russell
77d47e3235
Don't use the 'x-pack' subdir now that x-pack is part of core 2018-06-14 16:33:40 +02: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
715bd8591e
Use final 6.3.0 release instead of snapshot 2018-06-13 21:34:32 +02:00
Michael Russell
e5809a3169
Create the keystore if it doesn't already exist 2018-06-13 17:33:23 +02:00
Michael Russell
943797d564
Don't ignore errors when uninstalling plugins 2018-06-13 11:10:25 +02:00
Michael Russell
c1b83a892f
WIP: Add testing Makefile and matrix definitions 2018-06-13 09:34:28 +02:00
Michael Russell
6d82cf3142
WIP: 6.3 support 2018-06-13 08:29:45 +02:00
Michael Russell
a9f8403ffa
Add playbook and environment variable to build using snapshots 2018-06-13 08:24:42 +02:00
DJ Gill
31ee9afad8
Merge branch 'master' into master 2018-05-22 11:15:15 -07:00
Michael Russell
ffa98d276f
Merge branch 'master' into master 2018-05-14 17:03:24 +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 Everling
80baf268e5 SSL support optimisation 2018-05-05 07:42:08 +02:00
Jeffrey Everling
cc28b6149a Added more x-pack config options 2018-05-03 16:45:04 +02:00
Gabriel Preda
d0ed1da107
* changed condition as suggested by @Crazybus 2018-05-02 11:49:25 +03:00
Gabriel PREDA
d42c12fb44
Merge branch 'master' into fix-redhat-install-elasticsearch-until-condition 2018-05-02 11:32:14 +03:00
Chainarong Tangsurakit
b7b0793b37
require admin role to use update-alternatives
promote `update-alternatives` command to run as admin role
2018-04-26 14:45:12 +07:00
Jeffrey Everling
34f08130e1 Added changes to add required functionality and fix a bug 2018-04-24 12:51:03 +02:00
nicladas
f255051ef7
Update elasticsearch-xpack.yml
Original fact setting fails on update plays for Debian with : redhat_elasticsearch_install_from_repo is undefined.

Updated the conditional to allow multiple plays.
2018-03-09 10:43:50 -05:00