Ales Komarek | dd881a6 | 2015-12-08 11:03:49 +0100 | [diff] [blame] | 1 | {%- load_yaml as base_defaults %} |
| 2 | Debian: |
| 3 | pkgs: |
| 4 | - elasticsearch |
Dmitry Kalashnik | 694a03c | 2018-12-13 19:05:59 +0400 | [diff] [blame] | 5 | dependency_pkgs: |
Simon Pasquier | 0d838e1 | 2017-05-03 16:39:34 +0200 | [diff] [blame] | 6 | - default-jre-headless |
Filip Pytloun | 911588c | 2016-06-29 16:27:53 +0200 | [diff] [blame] | 7 | curator_pkgs: |
vgusev | 195c273 | 2018-02-12 19:10:34 +0400 | [diff] [blame] | 8 | - elasticsearch-curator |
Martin Polreich | 0c7f567 | 2017-04-11 13:27:30 +0200 | [diff] [blame] | 9 | - cron |
Ales Komarek | dd881a6 | 2015-12-08 11:03:49 +0100 | [diff] [blame] | 10 | service: elasticsearch |
Ales Komarek | dd881a6 | 2015-12-08 11:03:49 +0100 | [diff] [blame] | 11 | RedHat: |
| 12 | pkgs: |
| 13 | - elasticsearch |
Dmitry Kalashnik | 694a03c | 2018-12-13 19:05:59 +0400 | [diff] [blame] | 14 | dependency_pkgs: |
| 15 | - java-1.8.0-openjdk-headless |
Filip Pytloun | 911588c | 2016-06-29 16:27:53 +0200 | [diff] [blame] | 16 | curator_pkgs: |
vgusev | 195c273 | 2018-02-12 19:10:34 +0400 | [diff] [blame] | 17 | - elasticsearch-curator |
Ales Komarek | dd881a6 | 2015-12-08 11:03:49 +0100 | [diff] [blame] | 18 | service: elasticsearch |
Ales Komarek | dd881a6 | 2015-12-08 11:03:49 +0100 | [diff] [blame] | 19 | {%- endload %} |
| 20 | |
vgusev | 15e62f8 | 2017-11-08 13:21:39 +0400 | [diff] [blame] | 21 | {%- set server = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('elasticsearch:server'), base='default') %} |
Guillaume Thouvenin | d39b352 | 2016-11-17 10:49:58 +0100 | [diff] [blame] | 22 | |
| 23 | {%- load_yaml as client_defaults %} |
Guillaume Thouvenin | 13fa94c | 2016-11-23 09:38:22 +0100 | [diff] [blame] | 24 | Debian: |
| 25 | pkgs: |
| 26 | - python-elasticsearch |
| 27 | server: |
| 28 | host: 127.0.0.1 |
| 29 | port: 9200 |
Dmitry Kalashnik | e7c3285 | 2019-05-13 17:10:11 +0400 | [diff] [blame] | 30 | scheme: http |
Dmitry Kalashnik | a2d8557 | 2017-10-13 13:58:35 +0400 | [diff] [blame] | 31 | binary_port: 9300 |
Guillaume Thouvenin | 13fa94c | 2016-11-23 09:38:22 +0100 | [diff] [blame] | 32 | RedHat: |
| 33 | pkgs: |
| 34 | - python-elasticsearch |
Guillaume Thouvenin | d39b352 | 2016-11-17 10:49:58 +0100 | [diff] [blame] | 35 | server: |
| 36 | host: 127.0.0.1 |
| 37 | port: 9200 |
Dmitry Kalashnik | e7c3285 | 2019-05-13 17:10:11 +0400 | [diff] [blame] | 38 | scheme: http |
Dmitry Kalashnik | a2d8557 | 2017-10-13 13:58:35 +0400 | [diff] [blame] | 39 | binary_port: 9300 |
Guillaume Thouvenin | d39b352 | 2016-11-17 10:49:58 +0100 | [diff] [blame] | 40 | {%- endload %} |
| 41 | |
| 42 | {%- set client = salt['grains.filter_by'](client_defaults, merge=salt['pillar.get']('elasticsearch:client')) %} |
Dmitry Kalashnik | a2d8557 | 2017-10-13 13:58:35 +0400 | [diff] [blame] | 43 | |
| 44 | {% set monitoring = salt['grains.filter_by']({ |
| 45 | 'default': { |
| 46 | 'service_failed_warning_threshold_percent': 0.3, |
| 47 | 'service_failed_critical_threshold_percent': 0.6, |
Mateusz Matuszkowiak | 92b1125 | 2018-05-11 14:19:09 +0200 | [diff] [blame] | 48 | 'service_disk_space_watermark_minor_threshold_percent': 0.6, |
| 49 | 'service_disk_space_watermark_major_threshold_percent': 0.75, |
Dmitry Kalashnik | a2d8557 | 2017-10-13 13:58:35 +0400 | [diff] [blame] | 50 | }, |
| 51 | }, grain='os_family', merge=salt['pillar.get']('elasticsearch:monitoring')) %} |