etcd
Etcd speichert Konfigurationen im Netzwerk.
https://github.com/coreos/etcd/releases/
Python etcd installieren
yum install python2-pip
pip install python-etcd
apt-get install python-etcd
etcd als Pillar bekannt geben
my_etcd_config:
etcd.host: 127.0.0.1
etcd.port: 2379
ext_pillar:
- etcd: my_etcd_config root=/privy/%(minion_id)s
- file_tree:
root_dir: /srv/host-pillars/
follow_dir_links: True
Testen
Einen Key schreiben
curl http://localhost:2379/v2/keys/hase/bla -XPUT -d value="Mausi"
Key auf einem Minion auslesen
salt-call pillar.ext hase
Doku etcd
https://coreos.com/etcd/docs/latest/getting-started-with-etcd.html