Generarates inventory for ansible from etcd using python-etcd library.
The script assumes etcd.ini to be present alongside it. To choose a different path, set the ETCD_INI_PATH environment variable:
export ETCD_INI_PATH=/path/to/etcd.ini
| Useful One-Line Scripts for Perl Dec 03 2013 | version 1.10 | |
| -------------------------------- ----------- ------------ | |
| Compiled by Peteris Krumins ([email protected], @pkrumins on Twitter) | |
| http://www.catonmat.net -- good coders code, great reuse | |
| Latest version of this file is always at: | |
| http://www.catonmat.net/download/perl1line.txt |
| { | |
| "template" : "logstash-*", | |
| "settings" : { | |
| "index.refresh_interval" : "5s", | |
| "analysis" : { | |
| "analyzer" : { | |
| "default" : { | |
| "type" : "standard", | |
| "stopwords" : "_none_" | |
| } |