2021-03-21 16:40:58 +00:00
|
|
|
from bundlewrap.metadata import atomic
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'oidentd': {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@metadata_reactor.provides(
|
2021-06-03 11:59:15 +00:00
|
|
|
'firewall/port_rules/113',
|
2021-03-21 16:40:58 +00:00
|
|
|
)
|
2021-06-03 11:59:15 +00:00
|
|
|
def firewall(metadata):
|
2021-03-21 16:40:58 +00:00
|
|
|
return {
|
2021-06-03 11:59:15 +00:00
|
|
|
'firewall': {
|
2021-03-21 16:40:58 +00:00
|
|
|
'port_rules': {
|
2021-04-04 08:34:55 +00:00
|
|
|
'113': atomic(metadata.get('oidentd/restrict-to', {'*'})),
|
2021-03-21 16:40:58 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|