`@host.puppetmaster` will return nil rather than an error, as it's a method, not a parameter. Changing this to something like

    <%= @host.puppetmaster.blank? ? "" : "--server #{@host.puppetmaster}"  %>

Should be suifficient.