Browse files

Improve sudoers file for user deploy

Sometimes chef-client can be somewhere else.
For example, it is somewhere else on the Chef server
after you bootstrap it.
  • Loading branch information...
1 parent 1aa5663 commit c76c5dcd2af5f5f8bd8e7316211f659f7fadf9de @dmitriy-kiriyenko dmitriy-kiriyenko committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbooks/maintenance/recipes/users.rb
View
2 cookbooks/maintenance/recipes/users.rb
@@ -40,6 +40,6 @@
mode 0440
content <<-EOS
Defaults env_keep = "SSH_AUTH_SOCK"
- #{username} ALL= NOPASSWD: /usr/local/bin/chef-client
+ #{username} ALL= NOPASSWD: #{`which chef-client`.chomp}
EOS
end

0 comments on commit c76c5dc

Please sign in to comment.