2014-01-21 00:51:49 +01:00
|
|
|
{% set defaults = {
|
|
|
|
'config':{
|
|
|
|
'deamonize': True,
|
|
|
|
'verbose_level': 0,
|
2014-03-01 15:28:32 +01:00
|
|
|
'log_file': '/var/log/memcached.log',
|
2014-01-21 00:51:49 +01:00
|
|
|
'memory_cap': 64,
|
|
|
|
'port': 11211,
|
2014-01-21 01:05:31 +01:00
|
|
|
'user':' memcache',
|
2014-01-21 00:51:49 +01:00
|
|
|
'listen_address': '127.0.0.1',
|
|
|
|
'max_connections': 1024,
|
|
|
|
'lock_paged_memory': False,
|
|
|
|
'error_on_mem_full': False,
|
|
|
|
'max_core_file_limit': False,
|
|
|
|
}
|
|
|
|
} %}
|
2014-07-28 05:10:45 +02:00
|
|
|
{% 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',
|
2014-07-28 05:10:45 +02:00
|
|
|
},
|
|
|
|
'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',
|
2014-07-28 05:10:45 +02:00
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('memcached:lookup')) %}
|