bundlewrap/bundles/oidentd/metadata.py

23 lines
392 B
Python
Raw Normal View History

2021-03-21 16:40:58 +00:00
from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
'oidentd': {},
},
},
}
@metadata_reactor.provides(
2023-09-24 18:59:58 +00:00
'firewall/port_rules',
2021-03-21 16:40:58 +00:00
)
def firewall(metadata):
2021-03-21 16:40:58 +00:00
return {
'firewall': {
2021-03-21 16:40:58 +00:00
'port_rules': {
2023-09-24 18:59:58 +00:00
'113/tcp': atomic(metadata.get('oidentd/restrict-to', {'*'})),
2021-03-21 16:40:58 +00:00
},
},
}