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
| # just few fragments of isc dhcpd.conf | |
| # default/unspecified host goes to default.ipxe | |
| # | |
| subnet 192.168.0.0 netmask 255.255.255.0 { | |
| range 192.168.0.100 192.168.0.200; | |
| option routers 192.168.0.1; | |
| next-server 192.168.0.10 ; |
| #!ipxe | |
| set websrv 192.168.X.Y | |
| set smartos-build 20190131T012237Z | |
| ######## MAIN MENU ################### | |
| :start | |
| menu Welcome to iPXE's Boot Menu | |
| item | |
| item --gap -- ------------------------- Operating systems ------------------------------ |
| 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_" | |
| } |