Skip to content

Instantly share code, notes, and snippets.

@Zorlin
Created January 31, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zorlin/a2d036a0be0b651e9eee5f6510bd51eb to your computer and use it in GitHub Desktop.
Save Zorlin/a2d036a0be0b651e9eee5f6510bd51eb to your computer and use it in GitHub Desktop.
Trying to set up Foreman to deploy to multiple subnets...
# dhcpd.conf
omapi-port 7911;
default-lease-time 43200;
max-lease-time 86400;
not authoritative;
ddns-update-style none;
option domain-name "example.org.au";
option domain-name-servers 10.20.50.6, 10.20.50.7;
option ntp-servers none;
allow booting;
allow bootp;
option fqdn.no-client-update on; # set the "O" and "S" flag bits
option fqdn.rcode2 255;
option pxegrub code 150 = text ;
# Bootfile Handoff
next-server 10.20.50.95;
option architecture code 93 = unsigned integer 16 ;
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";
}
log-facility local7;
include "/etc/dhcp/dhcpd.hosts";
# example.org.au
subnet 10.20.50.0 netmask 255.255.255.0 {
interface eth0;
option subnet-mask 255.255.255.0;
option routers 10.20.50.1;
}
subnet 10.20.78.0 netmask 255.255.255.0 {
interface eth1;
option subnet-mask 255.255.255.0;
option routers 10.20.78.1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment