]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/accounts/recipes/default.rb
Use http for all backend requests
[chef.git] / cookbooks / accounts / recipes / default.rb
index 07d94ee57e180648a7dcc927ba812c265a2712dc..50e3d375a6d95a2724d8f7347b68efb06ea759f3 100644 (file)
@@ -38,7 +38,7 @@ search(:accounts, "*:*").each do |account|
 
     case details[:status]
     when "role"
 
     case details[:status]
     when "role"
-      user_shell = "/sbin/nologin"
+      user_shell = "/usr/sbin/nologin"
     when "user", "administrator"
       user_shell = details[:shell] || account["shell"] || node[:accounts][:shell]
     end
     when "user", "administrator"
       user_shell = details[:shell] || account["shell"] || node[:accounts][:shell]
     end
@@ -59,7 +59,8 @@ search(:accounts, "*:*").each do |account|
       supports :manage_home => manage_home
     end
 
       supports :manage_home => manage_home
     end
 
-    remote_directory user_home do
+    remote_directory "/home/#{name}" do
+      path user_home
       source name.to_s
       owner name.to_s
       group name.to_s
       source name.to_s
       owner name.to_s
       group name.to_s