Last active
November 9, 2016 08:11
-
-
Save chbiel/b5786c2f37787d7a708e4c468e36e52d 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
setup_es_backup: | |
http.query: | |
- name: 'http://localhost:9200/_snapshot/es5_backup' | |
- status: 200 | |
- method: 'PUT' | |
- data: "{'es5_backup': {'type': 'fs', 'settings': {'location': '/mount/backups/es5_backup'}}}" | |
- header_dict: {'Content-Type': 'application/json; charset=UTF-8'} | |
- require: | |
- http: check_es_available | |
# also tried (not working): | |
setup_es_backup: | |
http.query: | |
- name: 'http://localhost:9200/_snapshot/es5_backup' | |
- status: 200 | |
- method: 'PUT' | |
- data: | |
"es5_backup": | |
"type": 'fs' | |
"settings": | |
"location": '/mount/backups/es5_backup' | |
- header_dict: {'Content-Type': 'application/json; charset=UTF-8'} | |
- require: | |
- http: check_es_available | |
# also not working: | |
setup_es_backup: | |
http.query: | |
- name: 'http://localhost:9200/_snapshot/es5_backup' | |
- status: 200 | |
- method: 'PUT' | |
- data: | |
es5_backup: | |
type: 'fs' | |
settings: | |
location: '/mount/backups/es5_backup' | |
- header_dict: {'Content-Type': 'application/json; charset=UTF-8'} | |
- require: | |
- http: check_es_available |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment