memcached-formula/memcached/map.jinja
2014-12-02 17:43:01 +01:00

32 lines
943 B
Django/Jinja

{% set defaults = {
'config':{
'deamonize': True,
'verbose_level': 0,
'log_file': '/var/log/memcached.log',
'memory_cap': 64,
'port': 11211,
'user':' memcache',
'listen_address': '127.0.0.1',
'max_connections': 1024,
'lock_paged_memory': False,
'error_on_mem_full': False,
'max_core_file_limit': False,
}
} %}
{% set memcached = salt['grains.filter_by']({
'Debian':{
'server': 'memcached',
'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')) %}