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
#Search request | |
curl -H 'content-type: application/json' http://localhost:9200/documents/document/_search -d '{"query": {"bool": {"filter": {"range": {"timestamp": {"lte": "now-7d"}}}}}}' | |
#Delete request | |
curl -H 'content-type: application/json' http://localhost:9200/documents/document/_query -d '{"filter": {"range": {"timestamp": {"lte": "now"}}}}' -XDELETE |
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
{% macro my_macro(arg1) %} | |
{{ arg1 }}_file: | |
file.managed: | |
- name: /somewhere/{{ arg1 }} | |
- source: salt://files/{{ arg1 }} | |
{% endmacro %} |
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
System : ubuntu precise x86_64 | |
State declared : | |
pip.installed: | |
- names: | |
- pip==7.1.2 | |
- distribute | |
- upgrade: True | |
- index_url: https://pypi.python.org/simple |