78 lines
1.6 KiB
Python
78 lines
1.6 KiB
Python
|
directories = {
|
||
|
'/etc/ppp/ip-up.d': {
|
||
|
'purge': True,
|
||
|
'needs': {
|
||
|
'pkg_apt:ppp',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/ip-down.d': {
|
||
|
'purge': True,
|
||
|
'needs': {
|
||
|
'pkg_apt:ppp',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/ipv6-up.d': {
|
||
|
'purge': True,
|
||
|
'needs': {
|
||
|
'pkg_apt:ppp',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/ipv6-down.d': {
|
||
|
'purge': True,
|
||
|
'needs': {
|
||
|
'pkg_apt:ppp',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/peers': {
|
||
|
'purge': True,
|
||
|
'needs': {
|
||
|
'pkg_apt:ppp',
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
files = {
|
||
|
'/etc/ppp/chap-secrets': {
|
||
|
'source': 'secrets',
|
||
|
'content_type': 'mako',
|
||
|
'context': node.metadata['pppd'],
|
||
|
'mode': '0400',
|
||
|
'triggers': {
|
||
|
'svc_systemd:pppoe:restart',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/pap-secrets': {
|
||
|
'source': 'secrets',
|
||
|
'content_type': 'mako',
|
||
|
'context': node.metadata['pppd'],
|
||
|
'mode': '0400',
|
||
|
'triggers': {
|
||
|
'svc_systemd:pppoe:restart',
|
||
|
},
|
||
|
},
|
||
|
'/etc/ppp/peers/provider': {
|
||
|
'content_type': 'mako',
|
||
|
'context': node.metadata['pppd'],
|
||
|
'triggers': {
|
||
|
'svc_systemd:pppoe:restart',
|
||
|
},
|
||
|
},
|
||
|
'/etc/systemd/system/pppoe.service': {
|
||
|
'triggers': {
|
||
|
'action:systemd-reload',
|
||
|
'svc_systemd:pppoe:restart',
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
svc_systemd = {
|
||
|
'pppoe': {
|
||
|
'needs': {
|
||
|
'file:/etc/ppp/chap-secrets',
|
||
|
'file:/etc/ppp/pap-secrets',
|
||
|
'file:/etc/ppp/peers/provider',
|
||
|
'file:/etc/systemd/system/pppoe.service',
|
||
|
},
|
||
|
},
|
||
|
}
|