Parent Directory | Revision Log
split a module pubkeys_directory, so we can include it from symlink_user and make sure everything is correctly declared
1 | define openssh::symlink_user() { |
2 | include openssh::pubkeys_directory |
3 | $pubkeys_directory = $openssh::pubkeys_directory::pubkeys_directory |
4 | file { "$pubkeys_directory/$name": |
5 | ensure => directory, |
6 | owner => $name, |
7 | group => $name, |
8 | mode => '0700', |
9 | } |
10 | |
11 | file { "$pubkeys_directory/$name/authorized_keys": |
12 | # FIXME : fragile approximation for $HOME |
13 | ensure => link, |
14 | target => "/home/$name/.ssh/authorized_keys", |
15 | mode => '0700', |
16 | } |
17 | } |
18 | |
19 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |