summaryrefslogtreecommitdiff
path: root/templates/router/r1-x86-2-dnsmasq
blob: 8b0a21ec7a93a9e575d0f2e28b99f1384a1d49df (plain)
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
# 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

{% for rack in racks %}
# rack {{rack.name}}
{% for host in rack.hosts %}
{% if host.tag is defined %}
dhcp-host={{host.mac}},set:{{host.tag}},{{host.name}},{{host.ip}}
{% else %}
dhcp-host={{host.mac}},set:{{rack.name}},{{host.name}},{{host.ip}}
{% endif %}
{% endfor %}
{% endfor %}

enable-tftp
tftp-root=/var/lib/tftpboot/

dhcp-boot=tag:r1,/pxelinux/grubaa64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:r2,/pxelinux/grubaa64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:r3,/pxelinux/bootnetaa64.efi,r2-x86-1,10.20.0.20
dhcp-boot=tag:r3-hawker2,/pxelinux/grubaa64.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:qa-net,/pxelinux/grubaa64.efi,r2-x86-1,10.10.0.20
dhcp-boot=tag:hpc,/pxelinux/grubaa64.efi,r1a-11,10.10.0.111