bundles/users: remove authorized_keys if not set by bundle
This commit is contained in:
parent
b080492272
commit
e5539d508b
1 changed files with 3 additions and 0 deletions
|
@ -43,3 +43,6 @@ for username, attrs in node.metadata['users'].items():
|
|||
'mode': '0600',
|
||||
}
|
||||
|
||||
else:
|
||||
files[home + '/.ssh/authorized_keys'] = {'delete': True}
|
||||
|
||||
|
|
Loading…
Reference in a new issue