Merge pull request #10 from ticosax/libmemcached

Expose option to setup libmemcached
This commit is contained in:
Nitin Madhok 2014-12-02 11:53:43 -05:00
commit 435b442dcb
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
``memcached.libmemcached``
--------------------
Installs libmemcached development files to install ``pylibmc`` as python driver
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',
'python': 'python-memcache',
'config_file': '/etc/memcached.conf',
'libmemcached': 'libmemcached-dev',
},
'RedHat': {
'server': 'memcached',
'service': 'memcached',
'python': 'python-memcached',
'config_file': '/etc/sysconfig/memcached',
'libmemcached': 'libmemcached-devel',
},
}, merge=salt['pillar.get']('memcached:lookup')) %}