When you are using "if" in a template, It's better to suppress any whitespace before instruction and use " -%>".

like this:
````
  ServerName <%= @params[:server_name] %>
<% if node['ceph']['radosgw']['api_aliases'] -%>
<%   node['ceph']['radosgw']['api_aliases'].each do |api_alias| -%>
````