1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# DO NOT EDIT! MANAGED BY ANSIBLE
domain=aus-colo
# only manage dhcp for rack1
interface=em1.10 # rack 1
interface=em1.64 # rack 1 debian
interface=em1.20 # rack 2
interface=em1.30 # rack 3
interface=em1.33 # rack 3 mustang chassis
# rack1 NOTE: do not use 10.10.100.0 range (used by openstack)
dhcp-range=em1.10,10.10.0.100,10.10.3.250,255.255.0.0,24h
dhcp-range=em1.20,10.20.0.100,10.20.3.250,255.255.0.0,24h
dhcp-range=em1.30,10.30.0.100,10.30.3.250,255.255.0.0,24h
# rack3 note: 10.33.10.1->10.33.99.250 is used by openstack
dhcp-range=em1.33,10.33.0.100,10.33.3.250,255.255.0.0,24h
# rack1 hosts
{% for host in r1_hosts %}
{% if host.tag is defined %}
dhcp-host={{host.mac}},set:{{host.tag}},{{host.name}},{{host.ip}}
{% else %}
dhcp-host={{host.mac}},set:rack1,{{host.name}},{{host.ip}}
{% endif %}
{% endfor %}
# rack2 hosts
{% for host in r2_hosts %}
dhcp-host={{host.mac}},set:rack2,{{host.name}},{{host.ip}}
{% endfor %}
# rack3 hosts
{% for host in r3_hosts %}
{% if host.tag is defined %}
dhcp-host={{host.mac}},set:{{host.tag}},{{host.name}},{{host.ip}}
{% else %}
dhcp-host={{host.mac}},set:rack3,{{host.name}},{{host.ip}}
{% endif %}
{% endfor %}
enable-tftp
tftp-root=/var/lib/tftpboot/
# enable MAAS installs
dhcp-boot=tag:rack1,pxelinux.0,r1-maas-server,10.10.0.20
dhcp-boot=tag:rack2,/pxelinux/grubaa64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:rack3,/pxelinux/bootnetaa64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:rack3x,/pxelinux/bootnetx64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:rack3q,/pxelinux/grub-qcom.efi,r2-x86-1,10.20.0.20
|