From 1b3a7e9e35f2d20eddf7df844df261ff0ead5e0c Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Tue, 2 Dec 2014 17:28:48 +0100 Subject: [PATCH] Expose option to setup libmemcached --- README.rst | 5 +++++ memcached/libmemcached.sls | 6 ++++++ memcached/map.jinja | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 memcached/libmemcached.sls 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')) %}