In check mode Ansible is actually not going to execute the command.
Therefore, the return code is not defined making the role fail when
execute in Ansible check mode.
Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
* Fix commit fix the deb package url for Elasticsearch 6.x
* Fix commit fix the rpm package url for Elasticsearch 6.x and 7.x
* Download deb package directly using apt module
* Use new ansible syntax
When generating the CA the filename is `my-ca.p12`, so I changed the name from `my-truststore.p12` to `my-ca.p12`
Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
This commit fix "List Native Roles" task with Elasticsearch 7.11.0+
by removing the unused `body_format` parameter from `uri` module.
This parameter isn't used with a GET method but make request fail with
`request [GET /_security/role] does not support having a body` error
with Elasticsearch 7.11.0+.
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
* [meta] refactor kitchen tests
This commit update kitchen tests to match important feature to test:
- default: test a deployment with all default values
- license: test a deployment with a license and default values
- trial: test a deployment with security enabled and trial license
- oss: test a deployment with oss version and default values (6.x only)
- upgrade: test an upgrade from a previous version
- oss-upgrade: test an upgrade with oss version (6.x only)
- oss-to-default-upgrade: test an upgrade from previous oss to latest
default version
- custom_config: test a deployment with custom config files
- security: test a deployment with security enabled
* [meta] fix license test
This commit create dedicated Jenkins jobs for 6.x for master branch and
PRs. This is required to allow having different test suites for 7.x and
6.x in a following PR.
This commit fix the Ansible Galaxy install command to use the new
versioning implemented in 7.10.1 release.
ansible-beats tags are now prefixed by v which makes Ansible Galaxy
versions also including this prefix.
Fix#750
This commit report setting added to ansible-beats repo to fix the
transient Net::SCP::Error reported in ansible-beats and
ansible-elasticsearch during test-kitchen CI tests.
Elasticsearch requires its temp directory to be mounted as executable (see executable-jna-tmpdir). However, the CIS guidelines (e.g., CIS_Red_Hat_Enterprise_Linux_7_Benchmark_v2.1.1, 1.1.5) recommend mounting /tmp with noexec. Therefore, users of this ansible role may have reason to set elasticsearch's temp dir to a non-default location.
(The elasticsearch environment variable ES_TMPDIR gets set to /tmp by default. This PR preserves this default behavior.)
This commit adds a new auth-token-credential-id entry in addition of auth-token-id for slack token.
This is due to a bug in JJB which requires having both entries to prevent having an empty authTokenCredentialId in job config.xml (https://storyboard.openstack.org/#!/story/2007953).
Without become option stat operation for old users file will work only if user is in elasticsearch group, but copying of old file will fail because user have no write access in elasticsearch config dir.