30 lines
853 B
Django/Jinja
30 lines
853 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',
|
|
},
|
|
'RedHat': {
|
|
'server': 'memcached',
|
|
'service': 'memcached',
|
|
'python': 'python-memcached',
|
|
'config_file': '/etc/sysconfig/memcached',
|
|
},
|
|
}, merge=salt['pillar.get']('memcached:lookup')) %}
|