Skip to content

Commit

Permalink
a users group matches himself by default
Browse files Browse the repository at this point in the history
This is an edge case.
The default behavior for group changes slightly:
When creating user and passing a value to $user, while not
passing a value to $group, will now result in $group = $user, instead of
$group = $name.
  • Loading branch information
nod0n committed Jul 30, 2021
1 parent 783bba6 commit e88e990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
define sftp_jail::user (
$jail,
$user = $name,
$group = $name,
$group = $user,
) {
file { "${jail}/home/${user}":
ensure => 'directory',
Expand Down

0 comments on commit e88e990

Please sign in to comment.