How to set system hostname to match Foreman hostname

Below screen shot is from the provisioning template yet the file created on the server shows:

cat host-name

<%= @host.shortname %>
<%= @host %>