diff --git a/README.rst b/README.rst index 3738302..6b4b0df 100644 --- a/README.rst +++ b/README.rst @@ -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 ============ diff --git a/memcached/libmemcached.sls b/memcached/libmemcached.sls new file mode 100644 index 0000000..9739b37 --- /dev/null +++ b/memcached/libmemcached.sls @@ -0,0 +1,6 @@ +{% from 'memcached/map.jinja' import memcached with context %} + +libmemcached: + pkg: + - installed + - name: {{ memcached.libmemcached }} diff --git a/memcached/map.jinja b/memcached/map.jinja index cc2224f..ac42ecc 100644 --- a/memcached/map.jinja +++ b/memcached/map.jinja @@ -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')) %}