Expose option to setup libmemcached

This commit is contained in:
Nicolas Delaby 2014-12-02 17:28:48 +01:00
parent e6b2f44415
commit 1b3a7e9e35
3 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,11 @@ Memcached configuration file
Installs ``python-memcached`` package for RedHat/CentOS and ``python-memcache`` package for Debian Installs ``python-memcached`` package for RedHat/CentOS and ``python-memcache`` package for Debian
``memcached.libmemcached``
--------------------
Installs libmemcached development files to install ``pylibmc`` as python driver
Instructions Instructions
============ ============

View File

@ -0,0 +1,6 @@
{% from 'memcached/map.jinja' import memcached with context %}
libmemcached:
pkg:
- installed
- name: {{ memcached.libmemcached }}

View File

@ -19,11 +19,13 @@
'service': 'memcached', 'service': 'memcached',
'python': 'python-memcache', 'python': 'python-memcache',
'config_file': '/etc/memcached.conf', 'config_file': '/etc/memcached.conf',
'libmemcached': 'libmemcached-dev',
}, },
'RedHat': { 'RedHat': {
'server': 'memcached', 'server': 'memcached',
'service': 'memcached', 'service': 'memcached',
'python': 'python-memcached', 'python': 'python-memcached',
'config_file': '/etc/sysconfig/memcached', 'config_file': '/etc/sysconfig/memcached',
'libmemcached': 'libmemcached-devel',
}, },
}, merge=salt['pillar.get']('memcached:lookup')) %} }, merge=salt['pillar.get']('memcached:lookup')) %}