From 4c98e51c6a02f9a113a7d6a62987783b57e746cc Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 16 Sep 2015 17:06:37 +0300 Subject: [PATCH] clarified: Accept collab parameter also as a string --- clarified/templates/remote.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clarified/templates/remote.erb b/clarified/templates/remote.erb index 1d5ac64..f967ee3 100644 --- a/clarified/templates/remote.erb +++ b/clarified/templates/remote.erb @@ -4,7 +4,11 @@ CAPTURE_DIR="/var/lib/recorder/<%= @name %>" PRIVATE_CERT="<%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem" PUBLIC_CERT="<%= @puppet_ssldir %>/certs/<%= @homename %>.pem" PORT="<%= @remoteport %>" +<% if @collab.is_a?(Array) -%> COLLAB="<%= @collab.join(" ") %>" +<% else -%> +COLLAB="<%= @collab %>" +<% end -%> OPTIONS="<%= @remoteopt %>" . /etc/clarified/clarified-functions