%% This file is managed by Puppet
%%
%% Parameters in this file will override those in sitename/config
%% "<%= scope.lookupvar('zotonic::listen_port').class %>" "<%= @port.class %>"
[
<% if scope.lookupvar('zotonic::listen_port') != @port -%>
  {hostname, "<%= @hostname %>:<%= @port %>"},
  <% else -%>
  {hostname, "<%= @hostname %>"},
  <% end -%>
  {hostaliases, [
    <% @hostaliases.each_with_index do |hostalias, i| -%>
      "<%= hostalias %>"<%= ',' if i < (@hostaliases.size - 1) %>
    <% end -%>
  ]},
  {dbdatabase, "<%= @site_db_name %>"},
  {dbschema, "<%= @db_schema %>"},
  {admin_password, "<%= @admin_password %>"},
  {enabled, <%= @enabled %>}
].

%% This file is managed by Puppet
%%
%% Parameters in this file will override those in sitename/config
%% "<%= scope.lookupvar('zotonic::listen_port').class %>" "<%= @port.class %>"
[
<% if scope.lookupvar('zotonic::listen_port') != @port -%>
  {hostname, "<%= @hostname %>:<%= @port %>"},
  <% else -%>
  {hostname, "<%= @hostname %>"},
  <% end -%>
  {hostalias, [
    <% @hostaliases.each_with_index do |hostalias, i| -%>
      "<%= hostalias %>"<%= ',' if i < (@hostaliases.size - 1) %>
    <% end -%>
  ]},
  {dbdatabase, "<%= @site_db_name %>"},
  {dbschema, "<%= @db_schema %>"},
  {admin_password, "<%= @admin_password %>"},
  {enabled, <%= @enabled %>}
].

Fix hostalias config key name
Fix hostalias config key name
