summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-30 17:24:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-30 17:24:24 -0200
commit0af9b33bf82ba5132e4cd595a112293d48afaca0 (patch)
treeee19d955b57a9cac5d7fd6b70dd75ea724e5352d
parente065bca03404c43a6b8e817e906cf7fb8bf6761d (diff)
downloadpuppet-user-0af9b33bf82ba5132e4cd595a112293d48afaca0.tar.gz
puppet-user-0af9b33bf82ba5132e4cd595a112293d48afaca0.tar.bz2
Rollback .ssh management
-rw-r--r--manifests/init.pp21
1 files changed, 1 insertions, 20 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index edfc71d..55a803b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -142,32 +142,13 @@ class user {
# http://projects.reductivelabs.com/issues/2020
# http://groups.google.com/group/puppet-users/browse_thread/thread/131bc7cdc507e3c8/6b61dbcd0b6a68b5?lnk=raot
if $sshkey != 'absent' {
- file { "${real_homedir}/.ssh":
- ensure => directory,
- owner => $title,
- mode => 0700,
- }
-
- case $gid {
- 'absent','uid': {
- File["${real_homedir}/.ssh"]{
- group => $name,
- }
- }
- default: {
- File["${real_homedir}/.ssh"]{
- group => $gid,
- }
- }
- }
-
ssh_authorized_key { "$title":
ensure => $ensure,
key => $sshkey,
user => $title,
type => $real_sshkey_type,
target => "$real_homedir/.ssh/authorized_keys",
- require => [ User["$title"], File["${real_homedir}/.ssh"] ]
+ require => User["$title"],
}
}
}