Skip to content
Snippets Groups Projects
Commit d4a71c0d authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Small fixes in gitlab:users recipe

Consistently use the node['gitlab']['user']['group'] attribute.
Add comments.
parent f26ef4c7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment