From e5539d508b4e932ba3582901a05b83d31f649c24 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 29 Feb 2020 13:09:14 +0000 Subject: [PATCH] bundles/users: remove authorized_keys if not set by bundle --- bundles/users/items.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/users/items.py b/bundles/users/items.py index a9f39e5..775888a 100644 --- a/bundles/users/items.py +++ b/bundles/users/items.py @@ -43,3 +43,6 @@ for username, attrs in node.metadata['users'].items(): 'mode': '0600', } + else: + files[home + '/.ssh/authorized_keys'] = {'delete': True} +