salt.sdb.consul
Consul sdb Module
- maintainer
-
SaltStack
- maturity
-
New
- platform
-
all
This module allows access to Consul using an sdb://
URI
Like all sdb modules, the Consul module requires a configuration profile to be configured in either the minion or master configuration file. This profile requires very little. For example:
myconsul: driver: consul host: 127.0.0.1 port: 8500 token: b6376760-a8bb-edd5-fcda-33bc13bfc556 scheme: http consistency: default dc: dev verify: True
The driver
refers to the Consul module, all other options are optional. For option details see: https://python-consul.readthedocs.io/en/latest/#consul
salt.sdb.consul.get(key, profile=None)
-
Return a client object for accessing consul
salt.sdb.consul.get_conn(profile)
salt.sdb.consul.set_(key, value, profile=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/sdb/all/salt.sdb.consul.html