saltstack-formulas / dhcpd-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
8 stars 56 forks source link

[FEATURE] #53

Open geertwitter opened 3 years ago

geertwitter commented 3 years ago

While developing our deployment server, we encountered the following issues:

  1. We would like to add omapi settings (global) to the dhcpd.conf file.
  2. We would like to add the next-server setting (global) to the dhcpd.conf file.
  3. We would like to add custom options to the dhcpd.conf file.
  4. We would like to add custom lines to the dhcpd.conf file.

Rationale:

  1. We make use of Foreman for deploying nodes and Foreman makes use of the omapi interface.
  2. We need the next-server setting for all hosts.
  3. We have some specific custom options like: option fqdn.no-client-update True;
  4. We have some specific lines to add: if option architecture = 00:06 { filename "grub2/shim.efi"; } elsif option architecture = 00:07 { filename "grub2/shim.efi"; } elsif option architecture = 00:09 { filename "grub2/shim.efi"; } else { filename "pxelinux.0"; }

In order to realize this, we made some modifications to the dhcpd formula. But that will give us a maintenance issue in the future. It would be nice to have these updates in a next version of the formula.

The changes we made are: changes.patch.txt