bundles/users: add option to change home directory mode

This commit is contained in:
Franzi 2020-04-04 18:15:08 +02:00
parent a8a3bcdb83
commit 629c38230c
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ def mx_puppet_discord_user(metadata):
'mx-puppet-discord': {
'home': '/opt/mx-puppet-discord',
'deploy_configs': False,
'home-mode': '0755',
},
},
}, DEFAULTS, DONE

View file

@ -45,7 +45,7 @@ for username, attrs in node.metadata['users'].items():
directories[home] = {
'owner': username,
'mode': '0700',
'mode': attrs.get('home-mode', '0700'),
}
if 'ssh_pubkey' in attrs: