An open API service indexing awesome lists of open source software.

https://github.com/frimik/foreman-metal

Foreman Bare Metal Support
https://github.com/frimik/foreman-metal

Last synced: 3 months ago
JSON representation

Foreman Bare Metal Support

Awesome Lists containing this project

README

        

foreman-metal
=============

Foreman Bare Metal Support

Build Requirements
------------------
Building only works on Fedora 16 and CentOS 6. Support for building in
Mock/Chroot will be added later. There is an
[unmaintained mock branch](https://github.com/frimik/foreman-metal/tree/mock).

Usage
-----

Create the images with:

sudo rake images

Copy the tftpboot images and foreman-metal.ipxe file to your tftpboot server

If you want to create an x86 image on an x86_64 system, try:

sudo setarch i686 rake images

Foreman
-------

Add Foreman-Metal to your `PXE Default File`.

Example template here:

```erb
DEFAULT menu
PROMPT 0
MENU TITLE PXE Menu
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT metal

LABEL metal
MENU LABEL (metal)
MENU DEFAULT
IPAPPEND 2
kernel boot/ipxe.lkrn
append dhcp && chain http://static.tmtowtdi.se/foreman/metal/tftpboot/foreman-metal.ipxe

LABEL local
MENU LABEL (local)
LOCALBOOT 0

<% for profile in @profiles -%>
LABEL <%= "#{profile[:template]} - #{profile[:hostgroup]}" %>
kernel <%= profile[:hostgroup].operatingsystem.kernel(profile[:hostgroup].architecture) %>
<% case profile[:hostgroup].operatingsystem.pxe_type -%>
<% when "kickstart" -%>
append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %> ksdevice=bootif network kssendmac
<% when "preseed" -%>
append initrd=<%= profile[:hostgroup].operatingsystem.initrd(profile[:hostgroup].architecture) %> interface=auto url=<%= default_template_url(profile[:template], profile[:hostgroup]) %> 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
<% end -%>

<% end -%>
```