Skip to content

Instantly share code, notes, and snippets.

#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
{% macro my_macro(arg1) %}
{{ arg1 }}_file:
file.managed:
- name: /somewhere/{{ arg1 }}
- source: salt://files/{{ arg1 }}
{% endmacro %}
System : ubuntu precise x86_64
State declared :
pip.installed:
- names:
- pip==7.1.2
- distribute
- upgrade: True
- index_url: https://pypi.python.org/simple