add gentoo support to memcached role

Change-Id: I987abf6fc161f09312fbef984552313989ef3c31
This commit is contained in:
Matthew Thode 2019-01-24 19:10:44 -06:00
parent 36b5175376
commit b6bf3784e4
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# {{ ansible_managed }}
{% if debug | bool %}
{% set _verbosity = '-vvv' %}
{% else %}
{% set _verbosity = '-v' %}
{% endif %}
MEMCACHED_BINARY="/usr/bin/memcached"
PIDBASE="/var/run/memcached/memcached"
MEMUSAGE="{{ memcached_memory }}"
MEMCACHED_RUNAS="{{ memcached_user }}"
MAXCONN="{{ memcached_connections }}"
LISTENON="{{ memcached_listen }}"
PORT="{{ memcached_port }}"
UDPPORT="${PORT}"
MISC_OPTS="-t {{ memcached_threads }} {{ _verbosity }}"

24
vars/gentoo.yml Normal file
View File

@ -0,0 +1,24 @@
---
# Copyright 2019, Matthew Thode
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
memcached_user: memcached
memcached_distro_packages:
- net-misc/memcached
- net-analyzer/netcat
memcached_conf_template: memcached.gentoo.j2
memcached_conf_dest: /etc/memcached.conf