I’m new to Foreman and I’m working on a setup where I cannot use PXE for auto-discovery. I read here that you can re-provision an existing server by calling the appropriate template, something like ‘http://yourforeman.domain/unattended/provision?spoof=xx.yy.zz.xx’ (this is just to render the template)
I have the following questions:
- How you can see all the available provisioning templates? I see the files on /usr/share/foreman/app/views.unattended/provisioning_templates but it is not clear to me how this are mapped to the one I see on the Web UI (https://yourforeman.domain/templates/provisioning_templates)
- My example https://yourforeman.domain/unattended/provision?spoof=xx.yyy.zzz.xx gives me an error “
# unattended: unable to find a host that matches the request from xx.yyy.zzz.xx”
- My foreman server is on a different subnet than the server I need to provision. I enabled ‘Token duration=largeValue’ on settings, will this be enough for Foreman to work?
I’m using the 14.0 version of the discovery plugin and Foreman ‘1.21.2’.
Thanks in advance, I can provide more details if required.