clarified: Accept collab parameter also as a string

This commit is contained in:
Ossi Salmi 2015-09-16 17:06:37 +03:00
parent f9803c68ac
commit 4c98e51c6a

View file

@ -4,7 +4,11 @@ CAPTURE_DIR="/var/lib/recorder/<%= @name %>"
PRIVATE_CERT="<%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem" PRIVATE_CERT="<%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem"
PUBLIC_CERT="<%= @puppet_ssldir %>/certs/<%= @homename %>.pem" PUBLIC_CERT="<%= @puppet_ssldir %>/certs/<%= @homename %>.pem"
PORT="<%= @remoteport %>" PORT="<%= @remoteport %>"
<% if @collab.is_a?(Array) -%>
COLLAB="<%= @collab.join(" ") %>" COLLAB="<%= @collab.join(" ") %>"
<% else -%>
COLLAB="<%= @collab %>"
<% end -%>
OPTIONS="<%= @remoteopt %>" OPTIONS="<%= @remoteopt %>"
. /etc/clarified/clarified-functions . /etc/clarified/clarified-functions