PXE boot hosts via Foreman

I am faced with unique challenge of providing special netboot to group of
hosts. Host configuration takes place via Puppet once the minimal OS +
Puppet is installed on the host.

All machines reside in the same subnet as Foreman.
The hosts are bare metal as well as libvirt machines. Both types are
empty shell with hardware configurations ready (libvirt) to be installed.
I don't need to know about there health or another monitoring facility in
the Foreman.
I have special PXE template in foreman that I would like them to receive
when they net boot. The template has several kernel parameter that needs
to be rendered prior to sending KS. I know I can use "hammer host" but
don't know how to PXEboot them with specific template sequence
(PXE,Provision,Finish).

Thanks,
AP

If you have a different template, put the special hosts into a unique
host group and use the provisioning template's Associations tab to
associate it to that host group specifically.

The help information on that page explains the order in which templates
are selected - it'll prefer a host group template over the OS default.

··· On 04/02/16 17:08, An Pat wrote: > I am faced with unique challenge of providing special netboot to group > of hosts. Host configuration takes place via Puppet once the minimal OS > + Puppet is installed on the host. > > All machines reside in the same subnet as Foreman. > The hosts are bare metal as well as libvirt machines. Both types are > empty shell with hardware configurations ready (libvirt) to be > installed. I don't need to know about there health or another > monitoring facility in the Foreman. > I have special PXE template in foreman that I would like them to receive > when they net boot. The template has several kernel parameter that > needs to be rendered prior to sending KS. I know I can use "hammer > host" but don't know how to PXEboot them with specific template sequence > (PXE,Provision,Finish).


Dominic Cleal
dominic@cleal.org

Thanks for getting back. I read through documentation again and I am bit
confused now.

How do I put these special hosts in a specific host groups? They are not
provisioned by the Foreman yet but I need to provide them with special PXE
boot.

I read default_hostgroup plugin can be used to assign a newly discovered
host to specific hostgroup. Or there exist some other mechanism?
Thanks,
-AP

··· On Friday, February 5, 2016 at 3:23:20 AM UTC-5, Dominic Cleal wrote: > > On 04/02/16 17:08, An Pat wrote: > > I am faced with unique challenge of providing special netboot to group > > of hosts. Host configuration takes place via Puppet once the minimal OS > > + Puppet is installed on the host. > > > > All machines reside in the same subnet as Foreman. > > The hosts are bare metal as well as libvirt machines. Both types are > > empty shell with hardware configurations ready (libvirt) to be > > installed. I don't need to know about there health or another > > monitoring facility in the Foreman. > > I have special PXE template in foreman that I would like them to receive > > when they net boot. The template has several kernel parameter that > > needs to be rendered prior to sending KS. I know I can use "hammer > > host" but don't know how to PXEboot them with specific template sequence > > (PXE,Provision,Finish). > > If you have a different template, put the special hosts into a unique > host group and use the provisioning template's Associations tab to > associate it to that host group specifically. > > The help information on that page explains the order in which templates > are selected - it'll prefer a host group template over the OS default. > > -- > Dominic Cleal > dom...@cleal.org >

Usually to provision a host you add it to Foreman first, by going to
Hosts > New Host, entering the name, MAC address, OS etc. On the first
tab is the host group.

After you enter it there, and assuming you've got Foreman set up with
TFTP and DHCP integration, then it would generate the TFTP menu to PXE
boot the server into the OS you choose, and it'll get the most
appropriate template you selected by host group/OS/environment.

The default host group plugin is only really applicable for hosts that
have been provisioned by some other mechanism, as it's to set a group
when hosts are created by a Puppet/config management report.

The other plugin that might be relevant is Discovery, which boots all of
your servers up into a temporary discovery image and registers them
automatically in Foreman. You can then click and provision them with
the OS and host group that you choose.

··· -- Dominic Cleal dominic@cleal.org

On 12/02/16 22:13, An Pat wrote:

Thanks for getting back. I read through documentation again and I am
bit confused now.

How do I put these special hosts in a specific host groups? They are
not provisioned by the Foreman yet but I need to provide them with
special PXE boot.

I read default_hostgroup plugin can be used to assign a newly discovered
host to specific hostgroup. Or there exist some other mechanism?
Thanks,
-AP

On Friday, February 5, 2016 at 3:23:20 AM UTC-5, Dominic Cleal wrote:

On 04/02/16 17:08, An Pat wrote:
> I am faced with unique challenge of providing special netboot to
group
> of hosts.  Host configuration takes place via Puppet once the
minimal OS
> + Puppet is installed on the host.
>
> All machines reside in the same subnet as Foreman.
> The hosts are bare metal as well as libvirt machines.  Both types are
>  empty shell with hardware configurations ready (libvirt)  to be
> installed.  I don't need to know about there health or another
> monitoring facility in the Foreman.
> I have special PXE template in foreman that I would like them to
receive
> when they net boot.  The template has several kernel parameter that
> needs to be rendered prior to sending KS.  I know I can use "hammer
> host" but don't know how to PXEboot them with specific template
sequence
> (PXE,Provision,Finish).

If you have a different template, put the special hosts into a unique
host group and use the provisioning template's Associations tab to
associate it to that host group specifically.

The help information on that page explains the order in which templates
are selected - it'll prefer a host group template over the OS default.

-- 
Dominic Cleal
dom...@cleal.org <javascript:>


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.