bundles/basic: support configuring /etc/environment
This commit is contained in:
parent
8b1ccb760a
commit
e1fe424df9
2 changed files with 11 additions and 0 deletions
3
bundles/basic/files/environment
Normal file
3
bundles/basic/files/environment
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
% for k, v in sorted(node.metadata.get('environment', {}).items()):
|
||||||
|
${k}=${v}
|
||||||
|
% endfor
|
|
@ -19,6 +19,14 @@ files = {
|
||||||
'/etc/motd': {
|
'/etc/motd': {
|
||||||
'content': '',
|
'content': '',
|
||||||
},
|
},
|
||||||
|
'/etc/environment': {
|
||||||
|
'content_type': 'mako',
|
||||||
|
'before': {
|
||||||
|
'action:',
|
||||||
|
'pkg_apt:',
|
||||||
|
'pkg_pacman:',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
locale_needs = set()
|
locale_needs = set()
|
||||||
|
|
Loading…
Reference in a new issue