diff --git a/templates/object_host.conf.erb b/templates/object_host.conf.erb index cc5c1ab..727591a 100644 --- a/templates/object_host.conf.erb +++ b/templates/object_host.conf.erb @@ -30,9 +30,18 @@ object Host "<%= @object_hostname %>" { <%- end -%> <%- if @vars.empty? != true -%> <%- @vars.each_pair do |key, value| -%> + <%- @vars.each_pair do |key,value| -%> + <%- if value.is_a?(Hash) -%> + vars.<%= key %> = { + <%- value.each_pair do |subkey,subvalue|-%> + <%= subkey %> = <%= subvalue %> + <%- end -%> + } + <%- else -%> vars.<%= key %> = "<%= value %>" <%- end -%> <%- end -%> + <%- end -%> <%- if @check_command -%> check_command = "<%= @check_command -%>" <%- end -%>