Skip to content

Instantly share code, notes, and snippets.

@alex-zel
Created November 21, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-zel/5cd4f50bb532f0f6563adbcf5077640f to your computer and use it in GitHub Desktop.
Save alex-zel/5cd4f50bb532f0f6563adbcf5077640f to your computer and use it in GitHub Desktop.
'unhold elasticsearch':
cmd.run:
- name: 'apt-mark unhold elasticsearch'
elasticsearch:
pkg.installed:
- version: 5.0.1
- hold: True
- require:
- 'unhold elasticsearch'
{% for rem in remove %}
{{ rem }}:
cmd.run:
- name: 'rm -rf {{ rem }}'
- require:
- elasticsearch
{% endfor %}
'elasticsearch main config':
file.managed:
- name: '/etc/elasticsearch/elasticsearch.yml'
- source: 'salt://elk/config_files/elasticsearch/elasticsearch.yml'
- require:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment