Add Gentoo flavor
This commit is contained in:
parent
435b442dcb
commit
18ba4a8c79
@ -14,6 +14,8 @@ include:
|
|||||||
- source: salt://memcached/templates/memcached.conf
|
- source: salt://memcached/templates/memcached.conf
|
||||||
{% elif grains['os_family'] == 'RedHat' %}
|
{% elif grains['os_family'] == 'RedHat' %}
|
||||||
- source: salt://memcached/templates/sysconfig/memcached
|
- source: salt://memcached/templates/sysconfig/memcached
|
||||||
|
{% elif grains['os_family'] == 'Gentoo' %}
|
||||||
|
- source: salt://memcached/templates/conf.d/memcached
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: memcached
|
- service: memcached
|
||||||
|
@ -28,4 +28,11 @@
|
|||||||
'config_file': '/etc/sysconfig/memcached',
|
'config_file': '/etc/sysconfig/memcached',
|
||||||
'libmemcached': 'libmemcached-devel',
|
'libmemcached': 'libmemcached-devel',
|
||||||
},
|
},
|
||||||
|
'Gentoo':{
|
||||||
|
'server': 'net-misc/memcached',
|
||||||
|
'service': 'memcached',
|
||||||
|
'python': 'dev-python/python-memcache',
|
||||||
|
'config_file': '/etc/conf.d/memcached',
|
||||||
|
'libmemcached': 'dev-libs/libmemcached',
|
||||||
|
},
|
||||||
}, merge=salt['pillar.get']('memcached:lookup')) %}
|
}, merge=salt['pillar.get']('memcached:lookup')) %}
|
||||||
|
36
memcached/templates/conf.d/memcached
Normal file
36
memcached/templates/conf.d/memcached
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{% from 'memcached/macros.sls' import get_config_item with context -%}
|
||||||
|
# Copyright 2003 Gentoo Technologies, Inc
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/files/1.3.3/conf,v 1.1 2009/05/26 00:03:09 robbat2 Exp $
|
||||||
|
# memcached config file
|
||||||
|
|
||||||
|
MEMCACHED_BINARY="/usr/bin/memcached"
|
||||||
|
|
||||||
|
#Specify memory usage in megabytes (do not use letters)
|
||||||
|
#64MB is default
|
||||||
|
MEMUSAGE="{{ get_config_item('memory_cap') }}"
|
||||||
|
|
||||||
|
#User to run as
|
||||||
|
MEMCACHED_RUNAS="memcached"
|
||||||
|
|
||||||
|
#Specify maximum number of concurrent connections
|
||||||
|
#1024 is default
|
||||||
|
MAXCONN="{{ get_config_item('max_connections') }}"
|
||||||
|
|
||||||
|
#Listen for connections on what address?
|
||||||
|
# If this is empty, memcached will listen on 0.0.0.0
|
||||||
|
# be sure you have a firewall in place!
|
||||||
|
LISTENON="{{ get_config_item('listen_address') }}"
|
||||||
|
|
||||||
|
#Listen for connections on what port?
|
||||||
|
PORT="{{ get_config_item('port') }}"
|
||||||
|
|
||||||
|
# Listen for UDP connecitons on what port? 0 means turn off UDP
|
||||||
|
UDPPORT="0"
|
||||||
|
|
||||||
|
#PID file location
|
||||||
|
# '-${PORT}.${CONF}.pid' will be appended to this!
|
||||||
|
# You do not normally need to change this.
|
||||||
|
PIDBASE="/var/run/memcached/memcached"
|
||||||
|
|
||||||
|
#Other Options
|
||||||
|
MISC_OPTS=""
|
Loading…
Reference in New Issue
Block a user