I was thinking of the dynamic content of the file, e.g. the URL to Foreman will have to change based on $fqdn, so surely it needs templating?