Created
November 21, 2016 14:08
-
-
Save alex-zel/5cd4f50bb532f0f6563adbcf5077640f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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