From d15a84561ad77e3fa8f3246b42485d7f5407a3e9 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 31 Jan 2014 17:37:41 +0100 Subject: [PATCH] Import the chef_server::users recipe --- files/gitlab-cookbooks/gitlab/recipes/users.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+), 0 deletions(-) create mode 100644 files/gitlab-cookbooks/gitlab/recipes/users.rb diff --git a/files/gitlab-cookbooks/gitlab/recipes/users.rb b/files/gitlab-cookbooks/gitlab/recipes/users.rb new file mode 100644 index 0000000..b153539 --- /dev/null +++ b/files/gitlab-cookbooks/gitlab/recipes/users.rb @@ -0,0 +1,27 @@ +# +# Copyright:: Copyright (c) 2012 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Create a user for Chef services to run as +user node['chef_server']['user']['username'] do + system true + shell node['chef_server']['user']['shell'] + home node['chef_server']['user']['home'] +end + +group node['chef_server']['user']['username'] do + members [node['chef_server']['user']['username']] +end -- libgit2 0.21.2