X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fmemcached%2Ftemplates%2Fmemcached.conf.erb;fp=3rdparty%2Fmodules%2Fmemcached%2Ftemplates%2Fmemcached.conf.erb;h=0dae0bcf7cf4131c2678d0ca8909564f4e88af08;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hp=0000000000000000000000000000000000000000;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa;p=dsa-puppet.git diff --git a/3rdparty/modules/memcached/templates/memcached.conf.erb b/3rdparty/modules/memcached/templates/memcached.conf.erb new file mode 100644 index 00000000..0dae0bcf --- /dev/null +++ b/3rdparty/modules/memcached/templates/memcached.conf.erb @@ -0,0 +1,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 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 -%>