memcached-formula/memcached/map.jinja

32 lines
943 B
Plaintext
Raw Normal View History

{% set defaults = {
'config':{
'deamonize': True,
'verbose_level': 0,
2014-03-01 15:28:32 +01:00
'log_file': '/var/log/memcached.log',
'memory_cap': 64,
'port': 11211,
2014-01-21 01:05:31 +01:00
'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',
2014-11-17 20:10:20 +01:00
'config_file': '/etc/memcached.conf',
2014-12-02 17:28:48 +01:00
'libmemcached': 'libmemcached-dev',
},
'RedHat': {
'server': 'memcached',
'service': 'memcached',
'python': 'python-memcached',
2014-11-17 20:10:20 +01:00
'config_file': '/etc/sysconfig/memcached',
2014-12-02 17:28:48 +01:00
'libmemcached': 'libmemcached-devel',
},
}, merge=salt['pillar.get']('memcached:lookup')) %}