bundles/basic: support configuring /etc/environment

This commit is contained in:
Franzi 2022-11-04 07:28:14 +01:00
parent 8b1ccb760a
commit e1fe424df9
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,3 @@
% for k, v in sorted(node.metadata.get('environment', {}).items()):
${k}=${v}
% endfor

View file

@ -19,6 +19,14 @@ files = {
'/etc/motd': {
'content': '',
},
'/etc/environment': {
'content_type': 'mako',
'before': {
'action:',
'pkg_apt:',
'pkg_pacman:',
},
},
}
locale_needs = set()