Skip to content

Commit

Permalink
lock uid/gid
Browse files Browse the repository at this point in the history
  • Loading branch information
heffergm committed Sep 14, 2016
1 parent afc4d2b commit 436c9ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
default[:valhalla][:user][:name] = 'valhalla'
default[:valhalla][:user][:uid] = '3445'
default[:valhalla][:user][:git] = '3445'
default[:valhalla][:base_dir] = '/data'
default[:valhalla][:s3bucket] = 'mapzen.valhalla'
default[:valhalla][:s3bucket_dir] = 'prod'
Expand Down
2 changes: 2 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

# make the valhalla user
user node[:valhalla][:user][:name] do
uid node[:valhalla][:user][:uid]
gid node[:valhalla][:user][:gid]
manage_home false
home node[:valhalla][:base_dir]
not_if { node[:valhalla][:user][:name] == 'root' }
Expand Down

0 comments on commit 436c9ce

Please sign in to comment.