bundles/users: add option to change home directory mode
This commit is contained in:
parent
a8a3bcdb83
commit
629c38230c
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ def mx_puppet_discord_user(metadata):
|
||||||
'mx-puppet-discord': {
|
'mx-puppet-discord': {
|
||||||
'home': '/opt/mx-puppet-discord',
|
'home': '/opt/mx-puppet-discord',
|
||||||
'deploy_configs': False,
|
'deploy_configs': False,
|
||||||
|
'home-mode': '0755',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, DEFAULTS, DONE
|
}, DEFAULTS, DONE
|
||||||
|
|
|
@ -45,7 +45,7 @@ for username, attrs in node.metadata['users'].items():
|
||||||
|
|
||||||
directories[home] = {
|
directories[home] = {
|
||||||
'owner': username,
|
'owner': username,
|
||||||
'mode': '0700',
|
'mode': attrs.get('home-mode', '0700'),
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'ssh_pubkey' in attrs:
|
if 'ssh_pubkey' in attrs:
|
||||||
|
|
Loading…
Reference in a new issue