Compare commits
No commits in common. "3bcd2be520a20f2832c3193c54dee819b490f6a4" and "ecfd60803f87f97548c8b8f71e93413d65a4b8ab" have entirely different histories.
3bcd2be520
...
ecfd60803f
8 changed files with 10 additions and 27 deletions
|
@ -25,9 +25,6 @@ files= {
|
|||
'svc_systemd:systemd-sysctl.service:restart',
|
||||
],
|
||||
},
|
||||
'/etc/modules-load.d/managed.conf': {
|
||||
'content': '\n'.join(sorted(node.metadata.get('modules-load'))),
|
||||
}
|
||||
}
|
||||
|
||||
svc_systemd = {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
defaults = {
|
||||
'sysctl': {},
|
||||
'modules-load': set(),
|
||||
}
|
||||
|
|
|
@ -34,12 +34,10 @@ def dhcp(metadata):
|
|||
|
||||
@metadata_reactor.provides(
|
||||
'systemd/units',
|
||||
'modules-load',
|
||||
)
|
||||
def units(metadata):
|
||||
if node.has_bundle('systemd-networkd'):
|
||||
units = {}
|
||||
modules_load = set()
|
||||
|
||||
for network_name, network_conf in metadata.get('network').items():
|
||||
interface_type = network_conf.get('type', None)
|
||||
|
@ -98,15 +96,13 @@ def units(metadata):
|
|||
|
||||
# cake WIP
|
||||
|
||||
if 'cake' in network_conf:
|
||||
units[f'{network_name}.network']['CAKE'] = network_conf['cake']
|
||||
modules_load.add('sch_cake')
|
||||
# if 'cake' in network_conf:
|
||||
# units[f'{network_name}.network']['CAKE'] = network_conf['cake']
|
||||
|
||||
return {
|
||||
'systemd': {
|
||||
'units': units,
|
||||
},
|
||||
'modules-load': modules_load,
|
||||
}
|
||||
}
|
||||
else:
|
||||
return {}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
files = {
|
||||
'/etc/modules-load.d/pppoe.conf': {
|
||||
'content': 'pppoe\npppox\nppp_generic',
|
||||
'mode': '0644',
|
||||
},
|
||||
'/etc/ppp/peers/isp': {
|
||||
'content_type': 'mako',
|
||||
'mode': '0644',
|
||||
|
|
|
@ -4,11 +4,6 @@ defaults = {
|
|||
'pppoe': {},
|
||||
},
|
||||
},
|
||||
'modules-load': {
|
||||
'pppoe',
|
||||
'pppox',
|
||||
'ppp_generic',
|
||||
},
|
||||
'nftables': {
|
||||
'nat': {
|
||||
'oifname ppp0 masquerade',
|
||||
|
|
|
@ -10,9 +10,6 @@ defaults = {
|
|||
'resolvconf': {
|
||||
'installed': False,
|
||||
},
|
||||
'netplan.io': {
|
||||
'installed': False,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ defaults = {
|
|||
'users': {
|
||||
'root': {
|
||||
'home': '/root',
|
||||
'password': repo.vault.password_for(f'{node.name} user root', length=24),
|
||||
'password': repo.vault.password_for(f'{node.name} user root'),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -17,11 +17,6 @@
|
|||
'gateway4': '51.68.188.1',
|
||||
'ipv6': '2001:41d0:701:1100::751a/128',
|
||||
'gateway6': '2001:41d0:701:1100::1',
|
||||
'cake': {
|
||||
'Bandwidth': '350M',
|
||||
'FlowIsolationMode': 'triple',
|
||||
'RTTSec': '100ms',
|
||||
},
|
||||
},
|
||||
},
|
||||
'bind': {
|
||||
|
|
Loading…
Reference in a new issue