blob: 1cf0fbf5388042d259b145fcd988d415d0bf913f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
class profiles::ssh {
include ::ssh
$authorized_keys = lookup('ssh_authorized_keys', Array[Hash], undef, [])
ssh::client::config::user { 'root':
user_home_dir => '/root'
}
$authorized_keys.each |$key| {
ssh_authorized_key { $key['name']:
user => $key['user'],
type => $key['type'],
key => $key['key'],
}
}
}
|