- manage vmstorage package, service and environment file - manage vmselect package, service and environment file - manage vminsert package, service and environment file - manage vmagent package, service and environment file - manage options for vmstorage, vmselect, vminsert, vmagent role Reviewed-on: #363
19 lines
296 B
Plaintext
19 lines
296 B
Plaintext
<%
|
|
opts = @options || {}
|
|
lines = []
|
|
|
|
opts.each do |key, val|
|
|
flag = "-#{key}"
|
|
|
|
if val.is_a?(Array)
|
|
val.each do |v|
|
|
lines << "#{flag}=#{v}"
|
|
end
|
|
else
|
|
lines << "#{flag}=#{val}"
|
|
end
|
|
end
|
|
%>
|
|
OPTIONS="<%= lines.map { |l| l.lstrip }.join(" \\\n ") %>"
|
|
|