Description of problem:
If a host isn't in build mode, you cannot check if the kickstart template is rendered properly. Either you enable build mode and use http://sat6host/unattended/provision or you get an authentication cookie and use https://sat6host/unattended/provision?spoof=<hostname>. Both ways are tricky.
Steps to Reproduce:
1. Access to http://sat6host/unattended/provision from a host which is not in build mode and you won't get the template
2. Access to https://sat6.host/unattended/provision/?spoof=>hostname> and you will be redirected to login pages
3. No more methods to get it rendered
At least  should work, no matter the build status. Or it would be even better to have any API method to get it rendered.
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Created redmine issue http://projects.theforeman.org/issues/11643 from this bug
Upstream bug assigned to email@example.com
Moving to POST since upstream bug http://projects.theforeman.org/issues/11643 has been closed
Applied in changeset commit:8a817cb209c9499663beb850f7eb8f1726da42ad.
Move to 6.2 since this will be contained in the next rebase.
Verified in Satellite 6.2 Snap 20.1. There's now an API to preview templates:
[root@sat-snap-rhel7 ~]# curl -u admin:changeme -H "Content-Type:application/json" -H "Accept:application/json" https://sat-snap-rhel7.example.com/api/v2/hosts/centos7.example.com/template/provision
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.