From d4a71c0d0488109948d086ce88c406b6c5806cf0 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Sat, 15 Feb 2014 22:54:57 +0100 Subject: [PATCH] Small fixes in gitlab:users recipe --- files/gitlab-cookbooks/gitlab/recipes/users.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/files/gitlab-cookbooks/gitlab/recipes/users.rb b/files/gitlab-cookbooks/gitlab/recipes/users.rb index c390b45..c354b4f 100644 --- a/files/gitlab-cookbooks/gitlab/recipes/users.rb +++ b/files/gitlab-cookbooks/gitlab/recipes/users.rb @@ -17,21 +17,24 @@ # gitlab_username = node['gitlab']['user']['username'] +gitlab_group = node['gitlab']['user']['group'] gitlab_home = node['gitlab']['user']['home'] -group gitlab_username +# Create the group for the GitLab user +group gitlab_group -# Create a user for Chef services to run as +# Create the GitLab user user gitlab_username do shell node['gitlab']['user']['shell'] home gitlab_home - gid gitlab_username + gid gitlab_group end +# Configure Git settings for the GitLab user template File.join(gitlab_home, ".gitconfig") do source "gitconfig.erb" owner gitlab_username - group node['gitlab']['user']['group'] + group gitlab_group mode "0644" variables(node['gitlab']['user'].to_hash) end -- libgit2 0.21.2