Project

General

Profile

Feature #178

Automate populating the TFTP directory

Added by Paul Kelly almost 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
TFTP
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The media objects describe the boot files that are required.

Provide a mechanism for populating the /tftp directory with pxelinux.0, etc


Related issues

Blocked by Foreman - Feature #177: Add an Operatingsystem Family conceptClosed2010-03-11
Blocked by Foreman - Refactor #260: Switch family implemetation to use STIClosed2010-05-21
Follows Foreman - Feature #144: Media objects should also store their boot and build optionsClosed2009-12-27
Precedes Foreman - Feature #62: Add a Generic DHCP libraryClosed2010-03-152010-03-15

Associated revisions

Revision 0f77c7f2 (diff)
Added by Ohad Levy about 8 years ago

Fixes #178 and Fixes #24 - Automate populating the TFTP directory

This implementation is only for the Red Hat family, other OS's should follow
It implements a way to query foreman and gets the required boot files (i.e. kernel and initrd) files
from a predefine media over JSON.
it also provides a syslinux pxe configuration file based on those values and potentially other settings define via foreman.

History

#1 Updated by Paul Kelly almost 9 years ago

  • Status changed from New to Ready For Testing

A rake task tftp:populate has been provided.
An acion link on the medias page has been provided.

code is available on the new_iscdhcp_from_edge branch on my github

#2 Updated by Paul Kelly over 8 years ago

  • Branch set to feature/178-populate-tftp

Rebased on develop.
All tests working.
Whitespace beaten into submission

#3 Updated by Paul Kelly over 8 years ago

Rebased on develop
Converted javascript to cope with many-to-many operatingsystems. Ouch!
All tests pass

#4 Updated by Paul Kelly over 8 years ago

Addressed points highlighted in last commit by Ohad. (Especially the very dumb one.)
The curb gem is no longer required, but not having it disables the feature, after saying this in the log.

#5 Updated by Paul Kelly over 8 years ago

Rebased against develop
minor fixes

#6 Updated by Ohad Levy over 8 years ago

  • Subject changed from Automate populating the DHCP directory to Automate populating the TFTP directory
  • Target version set to 0.1-6

#7 Updated by Paul Kelly over 8 years ago

Rebased against version with STI families.
Minor fixes and visual improvements
Tested

#8 Updated by Paul Kelly about 8 years ago

rebased
tested
Also contains the commit for #144 - media contains bootinfo

#9 Updated by Paul Kelly about 8 years ago

rebased, tested and reposted

#10 Updated by Paul Kelly about 8 years ago

The "download tftp boot files" link is greyed out if the media does not contain an OS that supports tftp downloads.
The "populate" functions interrogate the OS/family to see if it supports the required functionality

#11 Updated by Ohad Levy about 8 years ago

Paul,

I've taken a difference approch on this feature, as eventually, the media populating itself should not be done via foreman directly - it should be the tfp server which should request the media files.
in the scenario of one Foreman server, and many tftp servers across the internet/WAN, it does not make sense to foreman to fetch the files.

Attached is my first step solution to the problem, please review and feedback.
Ohad

#12 Updated by Jochen Schalanda about 8 years ago

Hi,

based on Ohad's patch I've added support for Debian-based distributions which basically consists of adding the template file for pxelinux and implementing the Debian#boot_files_uri method in the Debian OS family class.

Cheers,
Jochen

#13 Updated by Ohad Levy about 8 years ago

  • Status changed from Feedback to Ready For Testing
  • % Done changed from 0 to 100

#14 Updated by Ohad Levy about 8 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF