I found the preseed default PXE is : append initrd=<%= @initrd %>
interface=auto preseed/url=<%= foreman_url("provision")%>
ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname
locale=en_US console-setup/ask_detect=false console-setup/layout=USA
console-setup/variant=USA keyboard-configuration/layoutcode=us
This was not working, because the foreman using 3000 port, while the
default is : http://192.168.1.90/unattended/provision, in this case the
client also couldn't load the autodef automatically.
So can I add the port 3000 to foreman URL and add ?spoof + ipaddress?
The working URL should be
http://foremanserver_IP:3000/unattended/provision?spoof=client_IP.
> Hi All,
>
> I found the preseed default PXE is : append initrd=<%= @initrd %>
> interface=auto preseed/url=<%= foreman_url("provision")%>
> ramdisk_size=10800 root=/dev/rd/0 rw auto hostname=unassigned-hostname
> locale=en_US console-setup/ask_detect=false console-setup/layout=USA
> console-setup/variant=USA keyboard-configuration/layoutcode=us
>
> This was not working, because the foreman using 3000 port, while the
> default is : http://192.168.1.90/unattended/provision, in this case the
> client also couldn't load the autodef automatically.
>
> So can I add the port 3000 to foreman URL and add ?spoof + ipaddress?
>
> The working URL should be http://foremanserver_IP:3000
> /unattended/provision?spoof=client_IP.
>
foreman url should be based on the url you are hitting foreman, not sure
how end up getting 3000 if you dont use it, try canceling build / enabling
build again to confirm.
regarding spoof, you should use the spoof option only when reviewing the
output, when provisioning the system, you should really not use it (as
spoof does not setup puppet certificates etc).