2020-09-06 10:05:42 +00:00
|
|
|
defaults = {
|
2020-11-07 08:39:57 +00:00
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'ffmpeg': {},
|
|
|
|
},
|
|
|
|
},
|
2020-09-06 10:05:42 +00:00
|
|
|
'users': {
|
|
|
|
'mautrix-telegram': {
|
|
|
|
'home': '/opt/mautrix-telegram',
|
|
|
|
'home-mode': '0755',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'matrix-synapse': {
|
|
|
|
'appservice_configs': {
|
|
|
|
'/opt/mautrix-telegram/registration.yaml',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'mautrix-telegram': {
|
|
|
|
'database': {
|
|
|
|
'user': 'mautrix-telegram',
|
|
|
|
'password': repo.vault.password_for('{} postgresql mautrix-telegram'.format(node.name)),
|
|
|
|
'database': 'mautrix-telegram',
|
|
|
|
},
|
2020-09-12 10:59:34 +00:00
|
|
|
'as_token': repo.vault.password_for('{} mautrix-telegram as_token'.format(node.name)),
|
|
|
|
'hs_token': repo.vault.password_for('{} mautrix-telegram hs_token'.format(node.name)),
|
|
|
|
'sender_localpart': repo.vault.password_for('{} mautrix-telegram sender_localpart'.format(node.name)),
|
2020-09-06 10:05:42 +00:00
|
|
|
},
|
|
|
|
'postgresql': {
|
|
|
|
'users': {
|
|
|
|
'mautrix-telegram': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql mautrix-telegram'.format(node.name)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'databases': {
|
|
|
|
'mautrix-telegram': {
|
|
|
|
'owner': 'mautrix-telegram',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|