bundlewrap/bundles/oidentd/metadata.py

23 lines
395 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(
'iptables/port_rules/113',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'113': atomic(metadata.get('oidentd/restrict-to', set('*'))),
},
},
}