Skip to content

Commit

Permalink
Adding group designation to mongodb user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
temujin9 committed Dec 6, 2012
1 parent 00e78a0 commit f1cad95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/mongodb/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#

default[:mongodb][:user] = 'mongodb'
default[:mongodb][:group] = 'mongodb'
default[:users]['mongodb'][:uid] = 5001
default[:groups]['mongodb'][:gid] = 5001

Expand Down
1 change: 1 addition & 0 deletions cookbooks/mongodb/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

if node[:mongodb][:server] # Only need user for servers
user node[:mongodb][:user] do
group node[:mongodb][:group]
action :create
system true
shell "/bin/false"
Expand Down

0 comments on commit f1cad95

Please sign in to comment.