feat: add variable to set major version
This commit is contained in:
parent
1fbea9082c
commit
aaeea21e54
4 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- feat: add variable to set major version
|
||||||
- feat: add ilm policy
|
- feat: add ilm policy
|
||||||
- test: add support debian 12
|
- test: add support debian 12
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ Install and configure Elasticsearch
|
||||||
|
|
||||||
## Role variables
|
## Role variables
|
||||||
|
|
||||||
|
* `elasticsearch_major_version` - set the major version (default: `7`)
|
||||||
* `elasticsearch_heap_size` - set the heap size (default: `1g`)
|
* `elasticsearch_heap_size` - set the heap size (default: `1g`)
|
||||||
* `elasticsearch_config` - hash with the configuration (see [elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html))
|
* `elasticsearch_config` - hash with the configuration (see [elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html))
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
elasticsearch_major_version: 7
|
||||||
elasticsearch_heap_size: 1g
|
elasticsearch_heap_size: 1g
|
||||||
elasticsearch_config: {}
|
elasticsearch_config: {}
|
||||||
elasticsearch_default_config:
|
elasticsearch_default_config:
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- name: Add repository
|
- name: Add repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: deb https://artifacts.elastic.co/packages/7.x/apt stable main
|
repo: "deb https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main"
|
||||||
tags: elasticsearch
|
tags: elasticsearch
|
||||||
|
|
||||||
- name: Install package
|
- name: Install package
|
||||||
|
|
Loading…
Reference in a new issue