Skip to content

Commit

Permalink
Pin Elastic Stack Versions (#587)
Browse files Browse the repository at this point in the history
Use version tag in config to pin installed software
  • Loading branch information
koelslaw authored Oct 28, 2021
1 parent 58650c3 commit 220c6ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions roles/elasticsearch/tasks/before.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
- name: Install packages
yum:
name:
- java-11-openjdk-headless
- elasticsearch
- elasticsearch-{{ rock_services | selectattr('name', 'equalto', 'elasticsearch') | map(attribute='version') | first }}
state: installed
register: es_install

Expand Down
2 changes: 1 addition & 1 deletion roles/filebeat/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: Install filebeat package
yum:
name: filebeat
name: filebeat-{{ rock_services | selectattr('name', 'equalto', 'filebeat') | map(attribute='version') | first }}
state: present

- name: Create filebeat config directory
Expand Down
2 changes: 1 addition & 1 deletion roles/kibana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: Install packages
yum:
name: kibana
name: kibana-{{ rock_services | selectattr('name', 'equalto', 'kibana') | map(attribute='version') | first }}
state: present

- name: Update kibana config
Expand Down
3 changes: 1 addition & 2 deletions roles/logstash/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
- name: Install packages
yum:
name:
- java-11-openjdk-headless
- logstash
- logstash-{{ rock_services | selectattr('name', 'equalto', 'logstash') | map(attribute='version') | first }}
state: present

- name: Add sysconfig file
Expand Down

0 comments on commit 220c6ae

Please sign in to comment.