adds legacy_puppet_hostname setting

Resolves: redmine #1745
References: http://projects.theforeman.org/issues/1745