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
- Host: GitHub
- URL: https://github.com/frimik/foreman-metal
- Owner: frimik
- Created: 2013-02-03T20:08:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-26T13:05:26.000Z (over 12 years ago)
- Last Synced: 2025-01-20T07:13:28.668Z (4 months ago)
- Language: Shell
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 metalLABEL metal
MENU LABEL (metal)
MENU DEFAULT
IPAPPEND 2
kernel boot/ipxe.lkrn
append dhcp && chain http://static.tmtowtdi.se/foreman/metal/tftpboot/foreman-metal.ipxeLABEL 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 -%>
```