Commit graph

15 commits

Author SHA1 Message Date
Jerome Charaoui
1f6803708a Add newline to ssh_authorized_key file content 2015-05-21 13:20:38 -04:00
Jerome Charaoui
feeb9400e5 Simplify ssh_authorized_key 2015-05-21 13:19:40 -04:00
Jerome Charaoui
cbfa047a71 Revert "Simplify ssh_authorized_key"
puppet-lint complains about "selector inside resource"

This reverts commit f3c0115743.
2015-05-21 13:12:18 -04:00
Jerome Charaoui
f3c0115743 Simplify ssh_authorized_key 2015-05-21 10:29:03 -04:00
Jerome Charaoui
4c87f6bd1e Add header to ssh_authorized_key when override_builting = 1 2015-05-21 10:17:52 -04:00
Jerome Charaoui
383f919ebb Fix invalid single quotes around variables 2015-05-21 09:58:38 -04:00
Matt Taggart
e60fb9a027 add override_builtin parameter to handle the common authorized_key directory case 2015-05-20 14:55:09 -07:00
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