bundlewrap/bundles/mailserver/metadata.py
mwiegand c1e37b233c wip
2021-06-13 18:40:51 +02:00

33 lines
767 B
Python

database_password = repo.vault.password_for(f'{node.name} db mailserver')
defaults = {
'mailserver': {
'maildir': '/var/vmail',
'database': {
'host': '127.0.0.1',
'name': 'mailserver',
'user': 'mailserver',
'password': database_password,
},
},
'zfs': {
'datasets': {
'tank/vmail': {
'mountpoint': '/var/vmail',
'compression': 'on',
},
},
},
'postgresql': {
'roles': {
'mailserver': {
'password': database_password,
},
},
'databases': {
'mailserver': {
'owner': 'mailserver',
},
},
},
}