c539543f54
v.2.5.0 sha1: 5a6c247a757671094d477d07c14b59c484d560d4 Implements: blueprint merge-openstack-puppet-modules Change-Id: I0f5dbe3b178d8805a92eadfe6516e467bc05abb3
28 lines
600 B
Plaintext
28 lines
600 B
Plaintext
PORT="<%= @tcp_port %>"
|
|
USER="<%= @user %>"
|
|
MAXCONN="<%= @max_connections %>"
|
|
<% Puppet::Parser::Functions.function('memcached_max_memory') -%>
|
|
CACHESIZE="<%= scope.function_memcached_max_memory([@max_memory]) %>"
|
|
OPTIONS="<%
|
|
result = []
|
|
if @verbosity
|
|
result << '-' + @verbosity.to_s
|
|
end
|
|
if @lock_memory
|
|
result << '-k'
|
|
end
|
|
if @listen_ip
|
|
result << '-l ' + @listen_ip
|
|
end
|
|
if @udp_port
|
|
result << '-U ' + @udp_port.to_s
|
|
end
|
|
if @item_size
|
|
result << '-I ' + @item_size.to_s
|
|
end
|
|
result << '-t ' + @processorcount
|
|
if @logfile
|
|
result << '>> ' + @logfile + ' 2>&1'
|
|
end
|
|
-%><%= result.join(' ') -%>"
|