-
-
Save Zorlin/a2d036a0be0b651e9eee5f6510bd51eb to your computer and use it in GitHub Desktop.
Trying to set up Foreman to deploy to multiple subnets...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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