/usr/share/puppet/modules.available/saz-memcached/templates/memcached.conf.erb is in puppet-module-saz-memcached 2.8.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | # File managed by puppet
# Run memcached as a daemon.
-d
<% if @pidfile -%>
# pidfile
-P <%= @pidfile %>
<% end -%>
# Log memcached's output
logfile <%= @logfile -%>
<% if @verbosity -%>
# Verbosity
-<%= @verbosity %>
<% end -%>
# Use <num> MB memory max to use for object storage.
<% Puppet::Parser::Functions.function('memcached_max_memory') -%>
-m <%= scope.function_memcached_max_memory([@max_memory]) %>
<% if @lock_memory -%>
# Lock down all paged memory. There is a limit on how much memory you may lock.
-k
<% end -%>
<% if @use_sasl -%>
# Start with SASL support
-S
<% end -%>
<% if @unix_socket -%>
# UNIX socket path to listen on
-s <%= @unix_socket %>
<% else -%>
<% if @listen_ip != '' -%>
# IP to listen on
-l <%= @listen_ip %>
<% end -%>
# TCP port to listen on
-p <%= @tcp_port %>
# UDP port to listen on
-U <%= @udp_port %>
<% end -%>
# Run daemon as user
-u <%= @user %>
<% if @large_mem_pages -%>
# Try to use large memory pages (if available)
-L
<% end -%>
# Limit the number of simultaneous incoming connections.
-c <%= @max_connections %>
# Number of threads to use to process incoming requests.
-t <%= @processorcount %>
<% if @item_size -%>
# Override the default size of each slab page
-I <%= @item_size %>
<% end -%>
<% if @auto_removal -%>
# Disable automatic removal of items from the cache when out of memory
-M
<% end -%>
|