salt.sdb.etcd_db
etcd Database Module
- maintainer
-
SaltStack
- maturity
-
New
- depends
-
python-etcd
- platform
-
all
New in version 2015.5.0.
This module allows access to the etcd database using an sdb://
URI. This package is located at https://pypi.python.org/pypi/python-etcd
.
Like all sdb modules, the etcd module requires a configuration profile to be configured in either the minion or master configuration file. This profile requires very little. In the example:
myetcd: driver: etcd etcd.host: 127.0.0.1 etcd.port: 2379
The driver
refers to the etcd module, etcd.host
refers to the host that is hosting the etcd database and etcd.port
refers to the port on that host.
password: sdb://myetcd/mypassword
-
Get a value from the etcd service
salt.sdb.etcd_db.delete(key, service=None, profile=None)
-
Get a value from the etcd service
salt.sdb.etcd_db.get(key, service=None, profile=None)
-
Set a key/value pair in the etcd service
salt.sdb.etcd_db.set_(key, value, service=None, profile=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/sdb/all/salt.sdb.etcd_db.html