/usr/lib/python3/dist-packages/provisioningserver/templates/dhcp/dhcpd6.conf.template is in python3-maas-provisioningserver 2.4.0~beta2-6865-gec43e47e6-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | # WARNING: Do not edit /var/lib/maas/dhcpd6.conf yourself. MAAS will
# overwrite any changes made there. Instead, you can modify dhcpd6.conf by
# using DHCP snippets over the API or through the web interface.
option dhcp6.client-arch-type code 61 = array of unsigned integer 16; # RFC5970
option path-prefix code 210 = text; #RFC5071
#
# Define lease time globally (can be overriden globally or per subnet
# with a DHCP snippet)
#
default-lease-time 1800;
max-lease-time 1800;
#
# Global DHCP snippets
#
{{if len(global_dhcp_snippets) == 0}}
# No global DHCP snippets defined
{{endif}}
{{for global_dhcp_snippet in global_dhcp_snippets}}
# Name: {{global_dhcp_snippet['name']}}
{{if global_dhcp_snippet['description'] != ''}}
# Description: {{global_dhcp_snippet['description'] | oneline}}
{{endif}}
{{global_dhcp_snippet['value']}}
{{endfor}}
#
# Networks
#
{{for shared_network in shared_networks}}
shared-network {{shared_network["name"]}} {
{{for dhcp_subnet in shared_network["subnets"]}}
subnet6 {{dhcp_subnet['subnet_cidr']}} {
# Bootloaders
{{if 'bootloader' in dhcp_subnet and dhcp_subnet['bootloader']}}
{{dhcp_subnet['bootloader']}}
{{endif}}
ignore-client-uids true;
{{if dhcp_subnet.get('dns_servers')}}
option dhcp6.name-servers {{dhcp_subnet['dns_servers'] | commalist}};
{{endif}}
option domain-name "{{dhcp_subnet['domain_name']}}";
{{if dhcp_subnet['search_list'] }}
option dhcp6.domain-search {{dhcp_subnet['search_list'] | quoted_commalist}};
{{endif}}
# DHCPv6 does not have a router option (although there has been a
# draft proposal for one). Clients should get their routes from
# route advertisements, or use custom options configured into both
# the server and the client:
# http://www.isc.org/blogs/routing-configuration-over-dhcpv6-2/
#
#option routers {{dhcp_subnet['router_ip']}};
{{if dhcp_subnet['ntp_servers_ipv4']}}
option ntp-servers {{dhcp_subnet['ntp_servers_ipv4']}};
{{endif}}
{{if dhcp_subnet['ntp_servers_ipv6']}}
option dhcp6.sntp-servers {{dhcp_subnet['ntp_servers_ipv6']}};
{{endif}}
#
# Subnet DHCP snippets
#
{{if len(dhcp_subnet['dhcp_snippets']) == 0}}
# No DHCP snippets defined for subnet
{{endif}}
{{for dhcp_snippet in dhcp_subnet['dhcp_snippets']}}
# Name: {{dhcp_snippet['name']}}
{{if dhcp_snippet['description'] != ''}}
# Description: {{dhcp_snippet['description'] | oneline}}
{{endif}}
{{for line in dhcp_snippet['value'].splitlines()}}
{{line}}
{{endfor}}
{{endfor}}
{{for pool in dhcp_subnet['pools']}}
pool6 {
range6 {{pool['ip_range_low']}} {{pool['ip_range_high']}};
}
{{endfor}}
}
{{endfor}}
}
{{endfor}}
#
# Hosts
#
{{for host in hosts}}
# {{host['host']}}
host {{host['mac'].replace(":", "-")}} {
#
# Node DHCP snippets
#
{{if len(host['dhcp_snippets']) == 0}}
# No DHCP snippets defined for host
{{endif}}
{{for dhcp_snippet in host['dhcp_snippets']}}
# Name: {{dhcp_snippet['name']}}
{{if dhcp_snippet['description'] != ''}}
# Description: {{dhcp_snippet['description'] | oneline}}
{{endif}}
{{for line in dhcp_snippet['value'].splitlines()}}
{{line}}
{{endfor}}
{{endfor}}
hardware ethernet {{host['mac']}};
fixed-address6 {{host['ip']}};
}
{{endfor}}
omapi-port 7912;
key omapi_key {
algorithm HMAC-MD5;
secret "{{omapi_key}}";
};
omapi-key omapi_key;
|