bundlewrap/bundles/mailman/metadata.py
2025-06-22 14:00:59 +02:00

29 lines
580 B
Python

defaults = {
'apt': {
'packages': {
'mailman3-full': {},
'postfix': {},
'apache2': {
'installed': False,
'needs': {
'pkg_apt:mailman3-full',
},
},
},
},
}
@metadata_reactor.provides(
'nginx/vhosts',
)
def nginx(metadata):
return {
'nginx': {
'vhosts': {
metadata.get('mailman/hostname'): {
'content': 'mailman/vhost.conf',
},
},
},
}