bundles/basic: support creating additional locales

This commit is contained in:
Franzi 2021-01-24 07:49:49 +01:00
parent d344664fa1
commit 614bdf9dec
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 11 additions and 7 deletions

View file

@ -1 +1 @@
LANG=${node.metadata['locale']}
LANG=en_US.UTF-8

View file

@ -1 +1,5 @@
${node.metadata['locale']} ${node.metadata['locale'].split('.')[-1]}
en_US.UTF-8 UTF-8
% for locale in sorted(node.metadata.get('locales', set())):
${locale} ${locale.split('.')[-1]}
% endfor

View file

@ -2,8 +2,7 @@
files = {
'/etc/default/locale': {
'content_type': 'mako',
'triggers': {
'needs': {
'action:locale-gen',
},
},

View file

@ -1,3 +0,0 @@
defaults = {
'locale': 'en_US.UTF-8',
}

View file

@ -108,6 +108,10 @@ nodes['htz.ex42-1048908'] = {
'part.of.the.trans-agenda.eu': set(),
},
},
'locales': {
# because scripts need to generate german date outputs
'de_DE.UTF-8',
},
'matrix-synapse': {
'server_name': 'franzi.business',
'baseurl': 'matrix.franzi.business',