Merge "add gentoo support to memcached role"

This commit is contained in:
Zuul 2019-02-26 14:50:03 +00:00 committed by Gerrit Code Review
commit f414404301
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