%PDF- %PDF-
| Direktori : /proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/pillar/ |
| Current File : //proc/self/root/proc/3522530/root/usr/lib/python2.7/site-packages/salt/pillar/redismod.pyc |
�
���^c @@ sb d Z d d l m Z m Z m Z d d l Z d Z d � Z d � Z d d � Z
d d � Z d S(
uw
Read pillar data from a Redis backend
=====================================
.. versionadded:: 2014.7.0
:depends: - redis Python module (on master)
Salt Master Redis Configuration
===============================
The module shares the same base Redis connection variables as
:py:mod:`salt.returners.redis_return`. These variables go in your master
config file.
* ``redis.db`` - The Redis database to use. Defaults to ``0``.
* ``redis.host`` - The Redis host to connect to. Defaults to ``'salt'``.
* ``redis.port`` - The port that the Redis database is listening on. Defaults
to ``6379``.
* ``redis.password`` - The password for authenticating with Redis. Only
required if you are using master auth. Defaults to ``None``.
Configuring the Redis ext_pillar
================================
.. code-block:: yaml
ext_pillar:
- redis: {function: key_value}
i ( t absolute_importt print_functiont unicode_literalsNu redisc C@ s d t k r t St S( u6
Only load if the redis module is in __salt__
u
redis.get_key( t __salt__t __virtualname__t False( ( ( s8 /usr/lib/python2.7/site-packages/salt/pillar/redismod.pyt __virtual__* s c K@ s9 | j d � s | t � k r"