2020-04-05 09:38:31 +00:00
|
|
|
@metadata_processor
|
|
|
|
def nodejs_apt_repos(metadata):
|
|
|
|
return {
|
|
|
|
'apt': {
|
|
|
|
'repos': {
|
|
|
|
'matrix': {
|
|
|
|
'key': 'AAF9AE843A7584B5A3E4CD2BCF45A512DE2DA058',
|
|
|
|
'items': [
|
|
|
|
'deb https://packages.matrix.org/debian buster main',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'unattended-upgrades': {
|
2020-05-23 15:01:30 +00:00
|
|
|
'origins': {
|
|
|
|
'o=matrix.org,n=buster,c=main',
|
2020-04-05 09:38:31 +00:00
|
|
|
},
|
|
|
|
},
|
2020-04-11 09:25:24 +00:00
|
|
|
'packages': {
|
|
|
|
'matrix-synapse-py3': {},
|
|
|
|
},
|
2020-04-05 09:38:31 +00:00
|
|
|
},
|
|
|
|
}, DEFAULTS, DONE
|
|
|
|
|
|
|
|
@metadata_processor
|
|
|
|
def synapse_defaults(metadata):
|
|
|
|
return {
|
|
|
|
'matrix-synapse': {
|
|
|
|
'registration_shared_secret': repo.vault.human_password_for('{} matrix-synapse registration_shared_secret'.format(node.name)),
|
|
|
|
'database': {
|
|
|
|
'user': 'synapse_user',
|
|
|
|
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
|
|
|
|
'database': 'synapse',
|
|
|
|
},
|
|
|
|
},
|
2020-06-01 09:09:03 +00:00
|
|
|
'postgresql': {
|
|
|
|
'users': {
|
|
|
|
'synapse_user': {
|
|
|
|
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'databases': {
|
|
|
|
'synapse': {
|
|
|
|
'owner': 'synapse_user',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2020-04-05 09:38:31 +00:00
|
|
|
}, DEFAULTS, DONE
|