Skip to content

Instantly share code, notes, and snippets.

View chbiel's full-sized avatar

Christopher chbiel

  • Jungheinrich Digital Solutions AG & Co.KG
  • Hamburg
View GitHub Profile
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
@chbiel
chbiel / Vagrantfile
Created June 1, 2016 12:24 — forked from borgand/Vagrantfile
Generic multi-machine Vagrantfile that supports fast and easy way to get testing machines up and running. Provisioning is done through multi-tier shell scripting
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Landrush domain name suffix
# https://github.com/phinze/landrush
# For linux:
# sudo apt-get install -y resolvconf dnsmasq
# sudo sh -c 'echo "server=/vm/127.0.0.1#10053" > /etc/dnsmasq.d/vagrant-landrush'
# sudo service dnsmasq restart
#
state.sls:
#!py
import yaml
import logging
log = logging.getLogger(__name__)
def run():