This commit is contained in:
mwiegand 2021-06-25 17:58:30 +02:00
parent 1030fe95e0
commit 716c166dc7
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,7 @@ for name, config in node.metadata.get('users').items():
directories[config['home']] = {
'owner': name,
'mode': '700',
}
files[f"{config['home']}/.ssh/id_{config['keytype']}"] = {

View file

@ -21,6 +21,9 @@ def user(metadata):
'authorized_keys': []
}
if not 'full_name' in config:
users[name]['full_name'] = name
if not 'home' in config:
users[name]['home'] = f'/home/{name}'