diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-19 16:56:11 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-19 16:56:11 +0000 |
commit | d0ba3a87e60690af20cd6ad13c561af4ef1fd428 (patch) | |
tree | 112cd3b92fd41eb878481f9ae6804a87ef787d40 /modules | |
parent | a18f8b25e381c84c7cb467f726204d6d321ff170 (diff) | |
download | puppet-d0ba3a87e60690af20cd6ad13c561af4ef1fd428.tar puppet-d0ba3a87e60690af20cd6ad13c561af4ef1fd428.tar.gz puppet-d0ba3a87e60690af20cd6ad13c561af4ef1fd428.tar.bz2 puppet-d0ba3a87e60690af20cd6ad13c561af4ef1fd428.tar.xz puppet-d0ba3a87e60690af20cd6ad13c561af4ef1fd428.zip |
split symlink into a separate file
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openssh/manifests/init.pp | 16 | ||||
-rw-r--r-- | modules/openssh/manifests/symlink.pp | 17 |
2 files changed, 17 insertions, 16 deletions
diff --git a/modules/openssh/manifests/init.pp b/modules/openssh/manifests/init.pp index b12a78aa..f68d1ea8 100644 --- a/modules/openssh/manifests/init.pp +++ b/modules/openssh/manifests/init.pp @@ -26,22 +26,6 @@ class openssh { mode => '0700', } - define symlink_user() { - file { "$pubkeys_directory/$name": - ensure => directory, - owner => $name, - group => $name, - mode => '0700', - } - - file { "$pubkeys_directory/$name/authorized_keys": - # FIXME : fragile approximation for $HOME - ensure => link, - target => "/home/$name/.ssh/authorized_keys", - mode => '0700', - } - } - symlink_user { $symlink_users: } $ldap_pwfile = '/etc/ldap.secret' diff --git a/modules/openssh/manifests/symlink.pp b/modules/openssh/manifests/symlink.pp new file mode 100644 index 00000000..92e7bd37 --- /dev/null +++ b/modules/openssh/manifests/symlink.pp @@ -0,0 +1,17 @@ +define symlink_user() { + file { "$pubkeys_directory/$name": + ensure => directory, + owner => $name, + group => $name, + mode => '0700', + } + + file { "$pubkeys_directory/$name/authorized_keys": + # FIXME : fragile approximation for $HOME + ensure => link, + target => "/home/$name/.ssh/authorized_keys", + mode => '0700', + } +} + + |