%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/salt/sdb/ |
| Current File : //proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/salt/sdb/consul.pyo |
�
���^c @@ s� d Z d d l m Z m Z m Z d d l m Z y d d l Z e Z Wn e
k
ra e Z n Xi d d 6Z d d � Z d d � Z d � Z d S(
u�
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:
.. code-block:: yaml
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
i ( t absolute_importt print_functiont unicode_literals( t CommandExecutionErrorNu setu set_c C@ s) | s
t St | � } | j j | | � S( N( t Falset get_connt kvt put( t keyt valuet profilet conn( ( s3 /usr/lib/python2.7/site-packages/salt/sdb/consul.pyt set_. s c C@ s@ | s
t St | � } | j j | � \ } } | r<