]> gitweb.fluxo.info Git - puppet-user.git/commitdiff
Authorized key requires homedir
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 15:06:12 +0000 (12:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 15:06:12 +0000 (12:06 -0300)
manifests/manage.pp

index e9500e690ce70e40c0e950acb495bbf21a7a784c..46ba4d2e39fcdf25fa53630fbf5c1aee86e303ab 100644 (file)
@@ -149,7 +149,7 @@ define user::manage(
       options => $sshkey_options,
       type    => $real_sshkey_type,
       target  => "$real_homedir/.ssh/authorized_keys",
-      require => User["$title"],
+      require => [ User["$title"], File["$real_homedir"] ],
     }
   }
 }