커밋 그래프

8 commits

작성자 SHA1 메시지 날짜
Michael Moll
7743650cde style fixes
silence puppet-lint
2013-02-03 00:30:54 +01:00
Gabriel Filion
5dd814871a ssh_authorized_key: use $name for user by default
Currently ssh_authorized_key has some logic about $user being false or
'', but it sets its value to default to 'root'.
So, in order to use the name as the user's name, one has to clear the
user parameter, which is totally redundant.

Since it is sometimes useful to publish multiple keys for a user, the
$user parameter is useful.

To make using ssh_authorized_key for one-key normal users simpler, make
$user default to being empty (which will use $name as the user name).
'root' can always be specified either via the name or by the $user
paramter.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-30 21:15:35 -05:00
Gabriel Filion
5bb61c2761 Fix ssh_authorized_key
When one uses the $name to define the user that should receive an SSH
key, setting $user to a negative value, ssh_authorized_key currently
creates the authorized_keys file under /home/.ssh/authorized_keys

Fix this by changing ${user} to ${real_user} in the key's path.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-30 21:15:35 -05:00
mh
edcd0859b1 make key removal a bit easier 2009-12-18 19:06:43 +01:00
mh
0f281c8d4d enable that ssh auth-keys can be removed 2009-12-18 18:36:05 +01:00
mh
217a4e2566 undef or '' as default 2009-12-10 23:34:57 +01:00
mh
bdf7bd334e merged with riseup module, various cleaning up 2009-12-10 23:15:07 +01:00
mh
5e20e07d1f factor everything into its own file 2009-12-07 16:03:55 -05:00