wip
This commit is contained in:
parent
1030fe95e0
commit
716c166dc7
2 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ for name, config in node.metadata.get('users').items():
|
||||||
|
|
||||||
directories[config['home']] = {
|
directories[config['home']] = {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'mode': '700',
|
||||||
}
|
}
|
||||||
|
|
||||||
files[f"{config['home']}/.ssh/id_{config['keytype']}"] = {
|
files[f"{config['home']}/.ssh/id_{config['keytype']}"] = {
|
||||||
|
|
|
@ -21,6 +21,9 @@ def user(metadata):
|
||||||
'authorized_keys': []
|
'authorized_keys': []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not 'full_name' in config:
|
||||||
|
users[name]['full_name'] = name
|
||||||
|
|
||||||
if not 'home' in config:
|
if not 'home' in config:
|
||||||
users[name]['home'] = f'/home/{name}'
|
users[name]['home'] = f'/home/{name}'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue