/[adm]/puppet/modules/openssh/manifests/symlink_user.pp
ViewVC logotype

Contents of /puppet/modules/openssh/manifests/symlink_user.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2703 - (show annotations) (download)
Mon Apr 2 11:05:27 2012 UTC (9 years, 4 months ago) by misc
File size: 514 byte(s)
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.28