2020-11-14 10:34:16 +00:00
|
|
|
defaults = {
|
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'wide-dhcpv6-client': {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'iptables': {
|
|
|
|
'bundle_rules': {
|
|
|
|
'wide-dhcp6c': [
|
|
|
|
'ip6tables -A INPUT -p udp -s ff00::/12 -j ACCEPT',
|
|
|
|
'ip6tables -A INPUT -p udp -s fe80::/10 -j ACCEPT',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'wide-dhcp6c': {
|
|
|
|
'subnet_len': '8',
|
|
|
|
},
|
|
|
|
}
|
2020-11-15 08:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
@metadata_reactor
|
|
|
|
def pppd(metadata):
|
|
|
|
if metadata.get('wide-dhcp6c/integrate-with-pppd', False):
|
|
|
|
return {
|
|
|
|
'pppd': {
|
|
|
|
'wait-until-stopped': {
|
|
|
|
'wide-dhcpv6-client.service',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return {}
|