update to bw4
This commit is contained in:
parent
d7862918a6
commit
5e2fea8497
22 changed files with 223 additions and 501 deletions
|
@ -1,47 +1,40 @@
|
|||
@metadata_processor
|
||||
def nodejs_apt_repos(metadata):
|
||||
return {
|
||||
'apt': {
|
||||
'repos': {
|
||||
'matrix': {
|
||||
'key': 'AAF9AE843A7584B5A3E4CD2BCF45A512DE2DA058',
|
||||
'items': [
|
||||
'deb https://packages.matrix.org/debian buster main',
|
||||
],
|
||||
},
|
||||
},
|
||||
'unattended-upgrades': {
|
||||
'origins': {
|
||||
'o=matrix.org,n=buster,c=main',
|
||||
},
|
||||
},
|
||||
'packages': {
|
||||
'matrix-synapse-py3': {},
|
||||
defaults = {
|
||||
'apt': {
|
||||
'repos': {
|
||||
'matrix': {
|
||||
'key': 'AAF9AE843A7584B5A3E4CD2BCF45A512DE2DA058',
|
||||
'items': [
|
||||
'deb https://packages.matrix.org/debian buster main',
|
||||
],
|
||||
},
|
||||
},
|
||||
}, 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',
|
||||
'unattended-upgrades': {
|
||||
'origins': {
|
||||
'o=matrix.org,n=buster,c=main',
|
||||
},
|
||||
},
|
||||
'packages': {
|
||||
'matrix-synapse-py3': {},
|
||||
},
|
||||
},
|
||||
'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',
|
||||
},
|
||||
},
|
||||
'postgresql': {
|
||||
'users': {
|
||||
'synapse_user': {
|
||||
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
|
||||
'database': 'synapse',
|
||||
},
|
||||
},
|
||||
'postgresql': {
|
||||
'users': {
|
||||
'synapse_user': {
|
||||
'password': repo.vault.password_for('{} postgresql synapse_user'.format(node.name)),
|
||||
},
|
||||
'databases': {
|
||||
'synapse': {
|
||||
'owner': 'synapse_user',
|
||||
},
|
||||
'databases': {
|
||||
'synapse': {
|
||||
'owner': 'synapse_user',
|
||||
},
|
||||
},
|
||||
}
|
||||
}, DEFAULTS, DONE
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue