How to add port and ?spoof + ipaddress in foreman_url

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.

Thanks,

> 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).

Ohad

··· On Tue, Sep 25, 2012 at 2:01 AM, gm wrote:

Thanks,


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/kKxiXv6H3cAJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.