%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/sdb/ |
Current File : //lib/python2.7/site-packages/salt/sdb/etcd_db.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z y d d l Z e Z Wn e k r] e Z n Xe j e � Z i d d 6Z d Z d � Z d d d � Z d d d � Z d d d � Z d � Z d S( u( etcd Database Module :maintainer: SaltStack :maturity: New :depends: python-etcd :platform: all .. versionadded:: 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: .. code-block:: yaml 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. .. code-block:: yaml password: sdb://myetcd/mypassword i ( t absolute_importt print_functiont unicode_literalsNu setu set_u etcdc C@ s t r t St S( u6 Only load the module if keyring is installed ( t HAS_LIBSt __virtualname__t False( ( ( s4 /usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyt __virtual__6 s c C@ s, t | � } | j | | � t | | | � S( u2 Set a key/value pair in the etcd service ( t _get_connt sett get( t keyt valuet servicet profilet client( ( s4 /usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyt set_? s c C@ s"