blob: ec4bb67947128c4e147f4680f46687e3bd6e6976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
define ssh_create_key(
$owner,
$group,
$keyfile = 'id_rsa',
$home = '/home/$owner'
) {
include nodo::subsystem::ssh_folder
exec { "ssh-keygen-${owner}":
command => "ssh-keygen -t rsa -P '' -f ${home}/.ssh/${keyfile}",
creates => "${home}/.ssh/${keyfile}",
user => $owner,
group => $group,
require => File["${home}/.ssh"],
}
}
|