blob: e380b1891ef6c73c37585d1db346babef56fb07a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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"],
}
}
|