bundlewrap/bundles/openssh/metadata.py

29 lines
552 B
Python
Raw Normal View History

from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
'openssh-client': {},
'openssh-server': {},
'openssh-sftp-server': {},
},
},
'pacman': {
'packages': {
'openssh': {},
},
},
}
@metadata_reactor.provides(
'iptables/port_rules/22',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
2021-04-04 08:34:55 +00:00
'22': atomic(metadata.get('openssh/restrict-to', {'*'})),
},
},
}